Geoff Clare dixit:
>So the 127 exit is required for "sh /tmp/horsies" if /tmp/horsies could
>not be found.
Heh. The source code even *tried* to DTRT, setting exstat to 127,
but the errorf() function doing the actual abortion set it to 1…
fixed.
//mirabilos
--
Yay for having to rewrite other peo
Geoff Clare dixit:
>Clint is right. Look at the synopsis for sh:
Okay, the HTML versions I had were not easy to search.
Then I’ll fix that in mksh, and Clint should file it
with dash too.
>The Austin Group mailing list is open to anyone to join. See
>
>www.opengroup.org/austin/lists.html
Than
Thorsten Glaser wrote, on 28 Sep 2009:
>
> Clint Adams dixit:
>
> >% mksh /tmp/horsies ; echo $?
> >/tmp/horsies: /tmp/horsies: No such file or directory
> >1
>
> t...@herc:~ $ mksh /tmp/horsies; print $?
> /tmp/horsies: /tmp/horsies: No such file or directory
Clint Adams dixit:
>% mksh /tmp/horsies ; echo $?
>/tmp/horsies: /tmp/horsies: No such file or directory
>1
t...@herc:~ $ mksh /tmp/horsies; print $?
/tmp/horsies: /tmp/horsies: No such file or directory
1
t...@herc:~ $ mksh -c /tmp/horsies; print $?
mksh: /tmp/
Dixi quod:
>(as stdin replacement)
More on this:
t...@frozenfish:~ $ mksh
t...@frozenfish:~ $ true
Package: mksh
Version: 38.3-1
% mksh /tmp/horsies ; echo $?
/tmp/horsies: /tmp/horsies: No such file or directory
1
According to SUSv3, the exit code should be 127:
127
A specified command_file could not be found by a non-interactive shell.
--
To UNSU
6 matches
Mail list logo