summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-05-29 15:16:47 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2014-05-29 15:16:47 -0400
commit48a72c671eb9f7f8ec040f42bacfe62436e37ee1 (patch)
tree83d131979f456e96af555f8775d4f21fb2357635
parent9adb283733962776a24565b5e2bf9bdfb135b968 (diff)
downloadperl-48a72c671eb9f7f8ec040f42bacfe62436e37ee1.tar.gz
Get rid of "grep empty(sub)expression" noise.
In OS X (and assumedly *BSD) Configure output starts with: grep empty(sub)expression apparently because plain 'grep' understands the 'os\(/\|\)2' somewhat differently (BRE vs ERE, RTFM re_format(7)) Cure: redirect the stderr of grep to stdout (which is then promptly redirected to /dev/null). The grep will still fail, and not take the OS/2 (or DJGPP) branch.
-rwxr-xr-xConfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/Configure b/Configure
index 293ef61788..a8e4a48fae 100755
--- a/Configure
+++ b/Configure
@@ -91,7 +91,7 @@ esac
: Proper separator for the PATH environment variable
p_=:
: On OS/2 this directory should exist if this is not floppy only system ":-]"
-if test -d c:/. || ( uname -a | grep -i 'os\(/\|\)2' ) 2>&1 >/dev/null ; then
+if test -d c:/. || ( uname -a | grep -i 'os\(/\|\)2' 2>&1 ) 2>&1 >/dev/null ; then
if test -n "$OS2_SHELL"; then
p_=\;
PATH=`cmd /c "echo %PATH%" | tr '\\\\' / `