On Tue, 2003-06-17 at 16:31, Bryan Murdock wrote: > I'm working on some environment setup scripts and I need to know inside > the script which shell the user (the person running the script) is > using. Short of doing a finger username and parsing out which shell > they are using, how do I figure this out?
The environment variable SHELL will tell you. $ echo $SHELL /bin/bash Corey ____________________ BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________ List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
