From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,d3434ee130e878f6,start X-Google-Attributes: gidfee84,public X-Google-Thread: 1164f8,d3434ee130e878f6,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-08-22 10:20:43 PST Path: bga.com!news.sprintlink.net!hookup!swrinde!howland.reston.ans.net!news.moneng.mei.com!uwm.edu!csd4.csd.uwm.edu!jgd From: jgd@csd4.csd.uwm.edu (John G Dobnick) Newsgroups: comp.sys.dec,comp.unix.osf.osf1 Subject: chsh, and how it's _supposed_ to work Date: 22 Aug 1994 17:15:59 GMT Organization: University of Wisconsin - Milwaukee Message-ID: <33amgfINNkkj@uwm.edu> Reply-To: jgd@csd.uwm.edu NNTP-Posting-Host: 129.89.7.4 Originator: jgd@csd4.csd.uwm.edu Xref: bga.com comp.sys.dec:5384 comp.unix.osf.osf1:3147 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