www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/05/11/09:08:02

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <19990511130912.19062.rocketmail@web125.yahoomail.com>
Date: Tue, 11 May 1999 06:09:12 -0700 (PDT)
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Reply-To: earnie_boyd AT yahoo DOT com
Subject: Re: cd $HOME
To: Ian Zimmerman <itz AT lbin DOT com>
Cc: cygwin users <cygwin AT sourceware DOT cygnus DOT com>
MIME-Version: 1.0

--- Ian Zimmerman <itz AT lbin DOT com> wrote:
> For some reason, I can't get bash to automatically change to my home
> directory when it starts.  The HOME envar is set to the Unixoid path, ie.
> /home/itz.  It has to be that way because I have other Cygwin-linked
> programs (XEmacs is one) that I want to be able to start independently,
> before bash has run.
> 
> Yes, I give bash the --login and -i flags.  It makes no difference.  Unless
> I explicitly cd to the home directory from the batch wrapper, the directory
> I end up in is either the bin directory where bash executable is located,
> or some weird ....\Desktop\itz place (the latter seems to happen when I
> start it through a Windows "shortcut").
> 
> As a consequence, my .profile is not being sourced, etc. etc.
> 
> Any ideas appreciated.

Are you positive that it isn't reading the /home/itz directory?  If after you
start bash you do `cd' what does `pwd' say?  Try issuing `bash --help'.  The
resource file for environment stuffs such as aliases should be in ~/.bashrc. 
The --login switch will read the /etc/profile file (maybe searches for others,
I don't remember at the moment) and from there you should source the ~/.bashrc
file.  Other information is available in the bash.info file.

===
"Earnie Boyd" <mailto:earnie_boyd AT yahoo DOT com>
CYGWIN RELATED HELP:
 DOCUMENTATION: <http://sourceware.cygnus.com/cygwin/docs.html>
       DLLHELP: <http://www.xraylith.wisc.edu/~khan/software/gnu-win32/>
ARCHIVE SEARCH: <http://www.delorie.com/archives/> OR
                <http://www.eGroups.com/list/gnu-win32/>
_________________________________________________________
Do You Yahoo!?
Free instant messaging and more at http://messenger.yahoo.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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