This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Identifying the interactive shell and logon startup scripts


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]