* How do I determine which shell from script?
@ 1997-06-23 0:06 Mike Dudley
0 siblings, 0 replies; only message in thread
From: Mike Dudley @ 1997-06-23 0:06 UTC (permalink / raw)
To: tru64-unix-managers
I'm a Unix rookie (scary part: I'm also the Sys Admin) and just started
writing Korn shell and C-shell scripts. I'd like to set some environment
variables in a script which will be called ('source' in C-shell, '.' in
Korn) from another script. The problem is that I would prefer to have all
the definitions in a single file so that if something changes I don't need
to remember to change it in multiple files. With the syntax for checking
the value of a variable being different in the 2 shells, how do I determine
which shell I'm running under, without creating an error message.
TIA
Mike Dudley
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1997-06-23 0:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-06-23 0:06 How do I determine which shell from script? Mike Dudley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox