This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Re: Identifying the interactive shell and logon startup scripts
- To: cygwin users <cygwin at sourceware dot cygnus dot com>
- Subject: Re: Identifying the interactive shell and logon startup scripts
- From: Chris Faylor <cgf at cygnus dot com>
- Date: Thu, 10 Aug 2000 14:54:16 -0400
- References: <20000810185013.17100.qmail@web118.yahoomail.com>
- Reply-To: cygwin at sources dot redhat dot com
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@sourceware.cygnus.com