Use of SHELL env var by login

Andrew Schulman
Tue Sep 27 11:20:00 GMT 2016

> I just moved the cygwin installation. The "last" peculiarity I ran into 
> was that the login shell, with the shortcut "F:\cygwin64\bin\mintty.exe 
> -i /Cygwin-Terminal.ico -", a ps showed
>      /cygdrive/c/cygwin64/bin/bash
> instead of /usr/bin/bash
> I tracked this down the the windows setting for SHELL, the one you get 
> to from windows' SystemProperties dialog, which was 
> C:/cygwin64/bin/bash. The /etc/passwd file specifies /bin/bash.
> Is this expected behavior? (Though I can see why SHELL is there and I'd 
> need to change it)

/etc/passwd is deprecated. Since Cygwin 2.5 IIRC, Cygwin no longer looks for it,
getting information about users directly from the operating system instead.
Unless you have a special need for it, you should remove it. Same for

In the absence of /etc/passwd, setting SHELL is the right way to set your login


Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list