"Because it's up-side down.
Why is that?
It makes replies harder to read.
Why not?
Please don't top-post." - Sherm Pendley, Mac OS X list

[EMAIL PROTECTED] wrote:
> Hi ,
> 
> I have executed a Perl script from csh[c shell ] and  saw that exit
> <number> is for shell from where it is invoked .
> Exit 100; at the end is captured by shell.
> Exit value can be  up to 127.
> 
> But I couldn't get what is <number>; ???? Stands for.
> 
> Any one can help here ... please
> 
> Thanks in advance
> Arjun
> 

It stands for whatever the program decides and documents as such. In
general to fit with the standard 0 is for a good return value, aka
success. >0 is for anything else. Many system programs will adhere to
the standards set by the OS, which are often enumerated in a sysexits.h
file or some such. And most of the time for *nixes they are going to be
similar across systems that have a similar heritage. For instance exit
codes on systems deriving more from System V or BSD will be closer, but
systems that are not directly descended from one or the other probably
will be more arbitrary. But it is really up to whatever the program says
are its exit values.

perldoc -f exit

For more. Check the documentation or source for whatever program you are
calling. If you are writing your own and plan to have users check exit
values then please document them clearly.

http://danconia.org

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to