Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Mon, 23 May 2005 19:11:22 -0700 From: Yitzchak Scott-Thoennes To: cygwin AT cygwin DOT com Subject: Re: /etc/profile always does a "cd $HOME" Message-ID: <20050524021122.GA3736@efn.org> References: <20050523195512 DOT 75357 DOT qmail AT web53409 DOT mail DOT yahoo DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050523195512.75357.qmail@web53409.mail.yahoo.com> User-Agent: Mutt/1.4.1i X-IsSubscribed: yes On Mon, May 23, 2005 at 12:55:12PM -0700, Dave wrote: > >>> i'd like to use cygwin from a normal windows-app. The problem is, that i > >>> need a login-shell, so that all environment-vars are properly set. The > >>> problem: bash -li always changes the current workdir! > > >The point was "a flly functional" environment, and just adding /bin to > >the PATH is only half the things, i'd need to do. > > If you have a recent* /etc/profile from base-files, pretend you're chere. From a > batch file: > > set CHERE_INVOKING=y > bash -li > set CHERE_INVOKING= > > From a sh script: > > CHERE_INVOKING=y && bash -li ITYM: CHERE_INVOKING=y bash -li -c somecommand ?? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/