Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: jgd@csd4.csd.uwm.edu (John G Dobnick)
Subject: chsh, and how it's _supposed_ to work
Date: 22 Aug 1994 17:15:59 GMT	[thread overview]
Message-ID: <33amgfINNkkj@uwm.edu> (raw)


Environment: DEC OSF/1 V2.0 (Rev. 240); Thu Jun 23 15:12:41 CDT 1994 

While attempting to create a chsh replacement, a "curiosity" in the
behavior of chsh appeared.

Specifically, I noticed that chsh will accept "shorthand" versions of
shell names.  This appears contrary to the documentation (see manpage
for chsh) which states that the new shell
    "must be one of the approved shells listed in /etc/shells".

The way I read this (a strict reading), "csh" is NOT a valid shell, but
"/bin/csh" is.  ("/bin/csh" is in /etc/shells, but "csh" is not;
therefore "csh" is NOT a valid shell.)

Anyway, this leads to the following question:  Does the above behavior
of chsh violate the relevant OSF (or other) standards?  Anyone have a
copy of the standard(s) handy?  I'm primarily interested in what the
standard _does_ have to say about chsh's behavior.

It can be argued that allowing such "abbreviated" forms of input is a
convenience to the user.  In this case, such behavior really should be
documented, shouldn't it?  [Aside: Under DEC's ULTRIX, the _text_ of
the manpage states "shell name supplied must match one of the entries
in /etc/shells".  Then DEC supplies one example, which proceeds to
violate this very statement.  Go figure.]

If this behavior _is_ documented someplace, I would appreciate a
pointer.  Thanks.

-- 
John G Dobnick                          "Knowing how things work is the basis
Computing Services Division              for appreciation, and is thus a 
University of Wisconsin - Milwaukee      source of civilized delight."
jgd@uwm.edu   ATTnet: (414) 229-5727                        -- William Safire






                 reply	other threads:[~1994-08-22 17:15 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