Subject: Re: bin/17340: the meaning of the "-c" option to /usr/bin/su is overloaded
To: NetBSD GNATS submissions and followups <firstname.lastname@example.org>
From: David Laight <email@example.com>
Date: 06/21/2002 23:32:46
> When the '-' option was introduced (before System III), it was
> implemented with a silly non-getopt() hack. It was still that way in
> SysVr3.2. I don't know what happened when '-' was deprecated and '-l'
> was introduced to replace it in order to bring 'su' closer to POSIX
I found some SVR4 sources (probably UnixWare 2 ish) from around
1997. su just looked at argv to see if it was "-".
No getopt() call, no other options.
David Laight: firstname.lastname@example.org