Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com From: Chris Faylor Date: Thu, 10 Aug 2000 14:54:16 -0400 To: cygwin users 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 References: <20000810185013 DOT 17100 DOT qmail AT web118 DOT yahoomail DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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