From: Josh ben Jore Date: Mon, 1 Feb 2010 16:05:13 +0000 (-0800) Subject: [perl #72156]: substitute `less -R' for `less' for groff's new usage X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2c0c170a5682dcc9df1a873339af96740b1b0e52;p=p5sagit%2Fp5-mst-13.2.git [perl #72156]: substitute `less -R' for `less' for groff's new usage of ANSI escape codes by setting $Config{less} (and thereby $Config{pager}). --- diff --git a/Configure b/Configure index 8d93a33..d9397bf 100755 --- a/Configure +++ b/Configure @@ -2438,6 +2438,15 @@ for file in $trylist; do ;; esac done +case "$less" in +'') ;; +*) if $less -R /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."