When starting Mintty, it’s better to include the following parameters:
-e /bin/bash –login
Otherwise Mintty will use the path of windows: system PATH first, user PATH second, then cygwin path ==> this will cause Windows versions of cygwin commands such as FIND to be executed.
Other tip: /cygwin/etc/profile and ~/.bashrc are the common two files controlling the behavior of bash shells.
Advertisement
Thanks a lot for this tip. I was wondering where and how to get MinTTY to ignore the Windows “named-the-same” executables to the ones I use in Cygwin. FIND is the true bugger: try a simple cwd-maxdepth2-type’f’ and it gives you something like “File name referenced twice in command.” Annoying!
Cheers.
BZT