On Mon, Sep 28, 2009 at 09:51:05AM +0300, Jari Aalto wrote:
>     mkdir tmp
>     posh tmp
> 
>     => No error messages, no status code $? to signify an error.
> 
> Please signal an error and terminate on non-zero exit code.
> An example from Bash:
> 
>    bash tmp
>    tmp/: tmp/: is a directory

I'm not sure how to interpret POSIX on this issue, although the exit code is
apparently incorrect in cases where "tmp" does NOT exist.

    The following exit values shall be returned:

        0
        The script to be executed consisted solely of zero or more blank lines 
or comments, or both.
    1-125
        A non-interactive shell detected a syntax, redirection, or variable 
assignment error.
      127
        A specified command_file could not be found by a non-interactive shell.

    Otherwise, the shell shall return the exit status of the last command it 
invoked or attempted to invoke (see also the exit utility in Special Built-In 
Utilities).




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to