[SunHELP] Shell Problem

Dale Ghent sunhelp at sunhelp.org
Tue Apr 17 01:35:03 CDT 2001


On 16 Apr 2001, Naresh Narang wrote:

| Hi
|
|   I want to set up env. variables based upon the shell a user is
| running, so in order to find what shell a user is using, I have to run
| a script in a Shell say /bin/sh. If I run it using #!/bin/sh to find
| user's shell, every shell behaves differently or if I use other
| methods to find shell then how do I use that shell to set env variable
| that can be read by user's shell and other statements are ignored.

sun provides a good example in the default /etc/profile. see the case
statement there.

/dale




More information about the SunHELP mailing list