Identifying the interactive shell and logon startup scripts
Chris Faylor
cgf@cygnus.com
Thu Aug 10 11:54:00 GMT 2000
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
More information about the Cygwin
mailing list