Subject: Re: bin/17340: the meaning of the "-c" option to /usr/bin/su is overloaded
To: NetBSD GNATS submissions and followups <gnats-bugs@gnats.netbsd.org>
From: David Laight <david@l8s.co.uk>
List: netbsd-bugs
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
> compatability.

I found some SVR4 sources (probably UnixWare 2 ish) from around
1997.  su just looked at argv[1] to see if it was "-".
No getopt() call, no other options.

	David

-- 
David Laight: david@l8s.co.uk