This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Is there a difference between "bash --login" and "bash --login -i"
- From: "JOHNER Jean 066030" <Jean dot JOHNER at cea dot fr>
- To: <cygwin at cygwin dot com>
- Date: Tue, 3 Aug 2010 11:47:35 +0200
- Subject: Re: Is there a difference between "bash --login" and "bash --login -i"
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: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple