Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Wed, 13 Oct 2004 19:28:25 -0600 (MDT) From: Andy Grimm To: cygwin AT cygwin DOT com Subject: Re: tcsh and chere-0.3-1 Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII > 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/