From: chet@pooh.INS.CWRU.Edu (Chet Ramey)
Subject: Re: Sh shell script problem on OSF4.0 (but not on SGI) (getopts and shift)
Date: 1997/05/28 [thread overview]
Message-ID: <5mhs00$btb@alexander.INS.CWRU.Edu> (raw)
In-Reply-To: 338BF0E4.41C6@dcs.rhbnc.ac.uk
In article <338BF0E4.41C6@dcs.rhbnc.ac.uk>,
Bob Vickers <bobv@dcs.rhbnc.ac.uk> wrote:
>As far as I can make out, /bin/getopts is a total waste of space,
>written by someone who doesn't know the first law of Unix programming:
>"A Unix process cannot alter the environment of its parent".
Don't be so harsh. I assume that DEC is attempting to conform to the
letter of POSIX.2, which requires that certain `regular' builtins
(of which `getopts' is one) ``be implemented in a manner so that
they can be accessed via the POSIX.1 exec family of functions.''
POSIX.2 doesn't say they have to be useful, but they must be available.
For your amusement, `read', `cd', `alias' and the job control builtins
(fg/bg/jobs) must also be present in the file system as executables.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Chet Ramey, Case Western Reserve University Internet: chet@po.CWRU.Edu
next prev parent reply other threads:[~1997-05-28 4:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-05-21 4:00 Sh shell script problem on OSF4.0 (but not on SGI) (getopts and shift) Maximillien Lincourt
1997-05-28 4:00 ` Bob Vickers
1997-05-28 4:00 ` Chet Ramey [this message]
1997-06-09 4:00 ` David Boyce
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