octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

exit value


From: c.
Subject: exit value
Date: Mon, 15 Jul 2013 18:44:53 +0200

Hi,

I'm not sure whether this is expected behaviour so I am asking before filing a 
bug.

The following work as I expect:
$ octave-cli -q --norc --eval "exit (0)"; echo $?
0
$ octave-cli -q --norc --eval "exit (1)"; echo $?
1
$ octave-cli -q --norc --eval "exit (177)"; echo $?
177

but the ones below look surprising:

$ octave-cli -q --norc --eval "exit (-177)"; echo $?
79
$ octave-cli -q --norc --eval "exit (-1)"; echo $?
0

is this the way it is supposed to work?

c.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]