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 Reply-To: earnie_boyd AT yahoo DOT com Subject: Re: cd $HOME To: Ian Zimmerman Cc: cygwin users MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii --- Ian Zimmerman 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" CYGWIN RELATED HELP: DOCUMENTATION: DLLHELP: ARCHIVE SEARCH: OR _________________________________________________________ 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