summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorBrian Fraser <fraserbn@gmail.com>2014-07-25 19:13:26 +0200
committerBrian Fraser <fraserbn@gmail.com>2014-07-25 19:13:26 +0200
commita872f748481d44baa8bc0f6eb29659782c96ba7f (patch)
treebcd61670a12dcba4404158768ecf6e3d347841cd /Configure
parent22636a294deeffb346cc852d77d2b3b68a7615c9 (diff)
downloadperl-a872f748481d44baa8bc0f6eb29659782c96ba7f.tar.gz
Configure: Discard errors when testing for less -R
When we try replacing 'less' with 'less -R', it's possible that less will output errors if the option is not supported; this happens, for example, in busybox's less.
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/Configure b/Configure
index a267266e03..8d802fdc65 100755
--- a/Configure
+++ b/Configure
@@ -2521,7 +2521,7 @@ egrep)
esac
case "$less" in
'') ;;
-*) if $less -R </dev/null >/dev/null; then
+*) if $less -R </dev/null >/dev/null 2>&1; then
echo "Substituting less -R for less."
less="$less -R"
_less=$less