This is the mail archive of the
mailing list for the Cygwin project.
Re: tcsh and chere-0.3-1
- From: Andy Grimm <snarf at dimensional dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 13 Oct 2004 19:28:25 -0600 (MDT)
- Subject: 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.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html