Question about GETOPT(3)

Rahul Dhesi dhesi%cirrusl at oliveb.ATC.olivetti.com
Fri Dec 1 13:13:56 AEST 1989


In article <118 at amix.commodore.com> ag at amix.commodore.com (Keith
Gabryelski) writes:

>Should we break this
>because some people can't put
>
>	S=/dev/stdin;export S
>
>in their .profile?

Some of you are being rather presumptuous when discussing the topic of
/dev/stdin vs "-".

The existence of getopt allows C programs to accept arguments in a
consistent way across many OSes, not just UNIX.  The idea of "use
standard input here" is also portable across many OSes.  The idea of
using "-" to mean "standard input" is also portable across many OSes.

The idea of /dev/stdin is NOT.

Rahul Dhesi <dhesi%cirrusl at oliveb.ATC.olivetti.com>
UUCP:  oliveb!cirrusl!dhesi



More information about the Comp.unix.wizards mailing list