This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Various shell problems


> Date: Fri, 15 Aug 2003 14:23:06 -0400
> From: Larry Hall <cygwin-lh@cygwin.com>

> To: "Dr.D.J.Picton" <dave@aps5.ph.bham.ac.uk>
> CC: cygwin@cygwin.com
> Subject: Re: Various shell problems

> 
> > 2.  SHELL environment variable problem.
> >    For some reason, the bash shell tends to drop the SHELL variable from the
> >    environment, causing a variety of problems.   I fixed this with a new
> >    startup script (/etc/bash.bash_env) which issues 'export SHELL', and by    
> >    contriving  (via the BASH_ENV environment variable and .bashrc scripts) 
that  
> >    all bash shells will use the script.   
> 
> 
> This is a change in bash behavior.  It's intentional.  It's not something
> new though.  It's at least a year old.  You can check the email archives
> for the bash announcement on this issue and/or the subsequent reports of
> "bugs" from this behavior change.

Thank you for clarifying this.  I obviously need to do my homework more
thoroughly in the future!

The ftp problem occurs because the /bin/sh shell is called with $0='-sh'
(whereas other shells have $0='+bash' etc and therefore presumably don't
regard themselves as login shells).  I'll modify profile to detect the
situation and avoid doing cd $HOME.


 




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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]