On Fri, Mar 16, 2007 at 06:06:34PM +0100, Robert Luberda wrote: > pdksh -c '.' does not fail, however it should since the required > argument of the '.' command is missing. > > The same is still true for dash and posh, but not for > ksh93 (which fails with "Usage: . [ options ] name [arg ...]") > or bash ("line 0: .: filename argument required").
Hi, I'd say that's debatable. From http://www.opengroup.org/onlinepubs/009695399/utilities/dot.html EXIT STATUS Returns the value of the last command executed, or a zero exit status if no command is executed. This leaves no room for a failure exit code on wrong usage, although the file argument is not optional in SYNOPSIS. It either is wrong usage, but no failure exit code defined, or it's "no command is executed", and exit code is 0. I'd prefer not to change dash. Regards, Gerrit. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]