Given the following commands:

$ ls -l /nosuch
ls: /nosuch: No such file or directory
$ echo $?
2


On one Linux system I get the value 2 as above. On another Linux
system I get the value 1.
(The first is a relatively new Ubuntu, the other one is some old Red Hat)

So am I doing something incorrectly or can I just assume that the exit
codes can change
even between Linuxes?

Gabor

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to