summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorJosh ben Jore <jjore@cpan.org>2010-02-01 08:05:13 -0800
committerJosh ben Jore <jjore@cpan.org>2010-02-07 12:42:47 -0800
commit2c0c170a5682dcc9df1a873339af96740b1b0e52 (patch)
tree476ae92a552753196c5b5ad6c5b875346ad80538 /Configure
parent761cea1cfc55c559b6225d4c6b64eb223b1733c3 (diff)
downloadperl-2c0c170a5682dcc9df1a873339af96740b1b0e52.tar.gz
[perl #72156]: substitute `less -R' for `less' for groff's new usage
of ANSI escape codes by setting $Config{less} (and thereby $Config{pager}).
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure9
1 files changed, 9 insertions, 0 deletions
diff --git a/Configure b/Configure
index 8d93a3316e..d9397bf2ad 100755
--- a/Configure
+++ b/Configure
@@ -2438,6 +2438,15 @@ for file in $trylist; do
;;
esac
done
+case "$less" in
+'') ;;
+*) if $less -R </dev/null >/dev/null; then
+ echo "Substituting less -R for less."
+ less="$less -R"
+ _less=$less
+ fi
+ ;;
+esac
case "$egrep" in
egrep)
echo "Substituting grep for egrep."