Re: stability of exitcodes

2008-07-08 Thread Gabor Szabo
thanks for all the responses. 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]

Re: stability of exitcodes

2008-07-07 Thread Ehud Karni
On Mon, 7 Jul 2008 16:36:37 Gabor Szabo wrote: > > 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,

Re: stability of exitcodes

2008-07-07 Thread Shachar Shemesh
Gabor Szabo wrote: So am I doing something incorrectly or can I just assume that the exit codes can change even between Linuxes? The later. Some commands define that certain exit codes have certain meanings (see the rsync manual, the section headed "EXIT VALUES"). For every other command t

stability of exitcodes

2008-07-07 Thread Gabor Szabo
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 incorrec