tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Mike Dudley <mdudley () quest-net ! com>
To: tru64-unix-managers
Subject: How do I determine which shell from script?
Date: Mon, 23 Jun 1997 00:06:22 +0000	[thread overview]
Message-ID: <96078613510563.tru64-unix-managers.marc@archive.invalid> (raw)

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

                 reply	other threads:[~1997-06-23  0:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox