Make grep in Cygwin path-stripping code case-sensitive for consistency
authorSebastian Schuberth <sschuberth@gmail.com>
Mon, 29 Oct 2012 21:29:49 +0000 (29 22:29 +0100)
committerSebastian Schuberth <sschuberth@gmail.com>
Mon, 29 Oct 2012 21:29:49 +0000 (29 22:29 +0100)
The previous "case" check already is case-sensitive, so there is no point
in making grep case-insensitive.

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
etc/profile

index 4439ed6..da6a464 100644 (file)
@@ -24,7 +24,7 @@ fi
 # strip out cygwin paths from PATH
 case "$PATH" in
 */cygwin/*)
-       export PATH=$(p=$(echo $PATH | tr ":" "\n" | grep -vi "/cygwin/" | tr "\n" ":"); echo ${p%:})
+       export PATH=$(p=$(echo $PATH | tr ":" "\n" | grep -v "/cygwin/" | tr "\n" ":"); echo ${p%:})
        ;;
 esac