delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/08/03/05:48:17

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Subject: Re: Is there a difference between "bash --login" and "bash --login -i"
Date: Tue, 3 Aug 2010 11:47:35 +0200
Message-ID: <1299EF3181B10F479D85C328013285240331C4D2@THEZE.intra.cea.fr>
From: "JOHNER Jean 066030" <Jean DOT JOHNER AT cea DOT fr>
To: <cygwin AT cygwin DOT com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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=3D1 /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.=20

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019