Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Identifying the NetBSD shell



On Mon, Mar 21, 2016 at 12:13:13PM +0700, Robert Elz wrote:
> Most shells (but not all, and the "not" currently includes NetBSD's shell)
> have some internal pre-defined variable (that is, can be used in scripts as
> $VAR - I am not talking about the C code) which can be used to identify the
> shell that is in use.

I'm not sure I like *any* kind of implicitly defined environment
variable for this purpose. So why can't it be a special set argument
instead, just like most command line tools of GNUish origin support
something like -V?

Joerg


Home | Main Index | Thread Index | Old Index