/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>