From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078613510563.tru64-unix-managers.marc@archive.invalid> From: Mike Dudley Date: Mon, 23 Jun 1997 00:06:22 +0000 To: tru64-unix-managers Subject: How do I determine which shell from script? X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078613510563 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