Subject: Re: Switching from old-style getopt to new-style one
To: Simon Burge <simonb@wasabisystems.com>
From: Greywolf <greywolf@starwolf.com>
List: tech-userlevel
Date: 11/01/2000 22:07:55
On Thu, 2 Nov 2000, Simon Burge wrote:

# > On Thu, 2 Nov 2000, Simon Burge wrote:
# > 
# > # Hmm
# > # 
# > # 	su root -c ls
# > # 
# > # login class "ls" ?
# > 
# > No, command.
# 
# If the fancy getopt replacement pulls "-c ls" by looking at su's getopt
# string (which has a ":c" in it), then it will set su's -c parameter to
# "ls", not pass it to the shell as it should be...

Odd, I'd read it as 'accept - as a parameter, and if there's a -c,
do something else with it (presumably)'.

That "something else" happens to go to the shell.  Are you sure you're
not thinking "c:"?

Or am I missing something?

				--*greywolf;
--
*BSD: My Computer Works!