delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
From: | Chris Faylor <cgf AT cygnus DOT com> |
Date: | Thu, 10 Aug 2000 14:54:16 -0400 |
To: | cygwin users <cygwin AT sourceware DOT cygnus DOT com> |
Subject: | Re: Identifying the interactive shell and logon startup scripts |
Message-ID: | <20000810145416.A8706@cygnus.com> |
Reply-To: | cygwin AT sources DOT redhat DOT com |
Mail-Followup-To: | cygwin users <cygwin AT sourceware DOT cygnus DOT com> |
References: | <20000810185013 DOT 17100 DOT qmail AT web118 DOT yahoomail DOT com> |
Mime-Version: | 1.0 |
User-Agent: | Mutt/1.3.6i |
In-Reply-To: | <20000810185013.17100.qmail@web118.yahoomail.com>; from earnie_boyd@yahoo.com on Thu, Aug 10, 2000 at 11:50:13AM -0700 |
On Thu, Aug 10, 2000 at 11:50:13AM -0700, Earnie Boyd wrote: >If you need to know what shell is running the following should suffice: > >THISSHELL=`set | grep -i version | cut -c1-4 | tr 'A-Z' 'a-z'` >if [ -z $THISSHELL]; then > THISSHELL=ash_; >fi This won't work on tcsh. I thought that was what you were trying to do. Otherwise, the method that I posted is *a lot* more lightweight than that technique. cgf -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |