delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/23/23:21:42

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
To: cygwin AT cygwin DOT com
From: =?ISO-8859-1?Q?Sven_K=F6hler?= <skoehler AT upb DOT de>
Subject: Re: /etc/profile always does a "cd $HOME"
Date: Tue, 24 May 2005 05:16:29 +0200
Lines: 22
Message-ID: <42929C8D.30006@upb.de>
References: <20050523195512 DOT 75357 DOT qmail AT web53409 DOT mail DOT yahoo DOT com>
Mime-Version: 1.0
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
In-Reply-To: <20050523195512.75357.qmail@web53409.mail.yahoo.com>
X-IsSubscribed: yes

>>>>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 <somecommand>
> set CHERE_INVOKING=
> 
> From a sh script:
> 
> CHERE_INVOKING=y && bash -li <somecommand>

The file in /etc/defaults/etc/profile has this CHERE_INVOKING thing, but
for some reason, that file wasn't copied to /etc/profile.

Can you imagine why?


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

- Raw text -


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