* De: Nate Lawson <[EMAIL PROTECTED]> [ Data: 2002-11-12 ] [ Subjecte: sleep(1) behavior ] > I've found an interesting contradiction and was wondering what behavior > sleep should have. It checks for a command line flag with getopt(3) and > exits with usage() if it finds one. However, it then checks for a '-' or > '+' sign. If negative, it behaves like "sleep 0" and exits > immediately. This case can almost never be triggered since the > getopt(3) will catch the minus sign, even if a digit follows it. > > Current behavior: > sleep 0 = exits immediately > sleep -1 = exits with usage() > sleep -f = exits with usage() > sleep " -1" = exits immediately and is the only way I know to trigger > the negative case.
What about: sleep -- -1 ? -- Juli Mallett <[EMAIL PROTECTED]> OpenDarwin, Mono, FreeBSD Developer. FreeBSD on MIPS-Anything on FreeBSD. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message