delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/10/13/21:28:31

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 <snarf AT dimensional DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: tcsh and chere-0.3-1
Message-ID: <Pine.LNX.4.44.0410131909480.24218-100000@shell.dimensional.com>
MIME-Version: 1.0

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019