Is there a difference between "bash --login" and "bash --login -i"

JOHNER Jean 066030
Tue Aug 3 09:48:00 GMT 2010

1/ Thank you, Eric for your precisions.

2/ On Mon, Aug 2, 2010 at 23:25, Dave Hylands wrote:
> I've always just created a shortcut with a "Target" of
> C:\cygwin\bin\bash.exe --login -i
> and set "Start in" to be the directory I want to start things in.

For me, the above method always starts in the $HOME directory (due to
/etc/profile action). I have to use:

C:\cygwin\bin\env.exe CHERE_INVOKING=1 /bin/bash --login -i

with the wanted directory in "Start in".

I guess you have made changes in /etc/profile if it works for you.

See the "Re: Window shortcut to launch a Mintty login bash on a given
directory" thread with Andy's explanations. 

Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list