/etc/profile: strip out cygwin paths from PATH
commite59039edb5c29987e88128bf9aae20e9df02dca1
authorTay Ray Chuan <rctay89@gmail.com>
Sat, 25 Dec 2010 11:16:03 +0000 (25 19:16 +0800)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Sat, 25 Dec 2010 13:27:42 +0000 (25 14:27 +0100)
treebfb2c9f75f761c75377db4dded3d5acd056e6d1f
parentbe9fc98b193e08a880fe6ba2c19b1ac8e29831b9
/etc/profile: strip out cygwin paths from PATH

This is useful for users on both msys/mingw and cygwin, as it prevents
cygwin executables/libraries from "contaminating" operations on
msys/mingw, like compilation and execution.

[Sebastian Schuberth suggested a much shorter invocation as per
http://stackoverflow.com/questions/370047/ (we added proper handling of
the trailing separator), and to avoid unnecessary spawning, the call is
wrapped in a case...esac construct]

Signed-off-by: Tay Ray Chuan <rctay89@gmail.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
etc/profile