This is the mail archive of the cygwin 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: tcsh and chere-0.3-1


> Actually that appears to be another bug in the script:  chere should
> invoke ash as "ash -" to start an ash login shell (I haven't tested
> this though).

Oops I made an error here.  There I go skimming man pages again :)  Ash 
will consider a process named "-ash" (argument zero) to be a login shell.  
This is hard to do unless you use something like bash's "exec -l" option
or maybe play with hard links which is ugly.  Therefore for ash you might
want to do the same thing I proposed for tcsh, reading in /etc/profile
then ~/.profile to set up the environment inherited by the exec'd shell.

-Andy


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