delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/24/16:13:24

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
Message-ID: <20050524201307.66230.qmail@web53401.mail.yahoo.com>
Date: Tue, 24 May 2005 13:13:07 -0700 (PDT)
From: Dave <d_inabox AT yahoo DOT com>
Subject: Re: /etc/profile always does a "cd $HOME"
To: cygwin AT cygwin DOT com
MIME-Version: 1.0

Yitzchak Scott-Thoennes wrote:
> 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 sh script:
>> 
>> CHERE_INVOKING=y && bash -li <somecommand>
>
>ITYM:
>
>CHERE_INVOKING=y bash -li -c somecommand

Thanks for the correction. I never knew that was valid, and I suppose I'll
always wonder why some of my scripts ever worked.

Dave.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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