mintty parameters

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.


3 thoughts on “mintty parameters

  1. 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!



  2. This also solved my problem of commands simply not working. Before adding this, even vi wasn’t found. Thanks!

  3. By the way, separating the $PATH of bash in .bashrc and the windows PATH is very useful. For example, cygwin comes with TeTeX or TeXLive, which is not easy to remove completely and conflicts with MikTeX on Windows. After cleaning the PATH of .bashrc, my windows setting and bash setting are separate.
    My $PATH in .bashrc:

    export PATH=/cygdrive/c/CTEX/UserData/miktex/bin:/cygdrive/c/CTEX/MiKTeX/miktex/bin:/cygdrive/c/CTEX/CTeX/ctex/bin:/cygdrive/c/CTEX/CTeX/cct/bin:/cygdrive/c/CTEX/CTeX/ty/bin:/cygdrive/c/CTEX/Ghostscript/gs9.00/bin:/cygdrive/c/CTEX/Ghostscript/gs9.00/lib:/cygdrive/c/CTEX/GSview/gsview:/cygdrive/c/CTEX/WinEdt:/usr/bin:/usr/X11R6/bin:/usr/sbin:/usr/local/bin:/bin:/sbin:/usr/local/root/bin:/usr/local/dicom/bin

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s