16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Exit Values<br />

Limits<br />

Portability<br />

v NLSPATH<br />

See Appendix F, “Localization” for more information.<br />

0 Successful completion<br />

1 Failure due to any of the following errors:<br />

v Break statement found outside loop<br />

v Parser stack overflow<br />

v Syntax error<br />

v End of file in comment<br />

v End of file in string<br />

v Numerical constant is too long<br />

v String is too long<br />

v Empty evaluation stack<br />

v Cannot pass scalar to array<br />

v Cannot pass array to scalar<br />

v Incorrect array index<br />

v Built-in variable cannot be used as a parameter or auto variable<br />

v name is not a function<br />

v Incorrect value for built-in variable<br />

v Shell command failed to run<br />

v Division by 0<br />

v Incorrect value for exponentiation operator<br />

v Attempt to take square root of negative number<br />

v Out of memory<br />

2 Unknown command-line option<br />

The parser stack depth is limited to 150 levels. Attempting to process extremely<br />

complicated programs may result in an overflow of this stack, causing an error.<br />

P<strong>OS</strong>IX.2, X/Open Portability Guide, <strong>UNIX</strong> systems.<br />

The following are extensions to the P<strong>OS</strong>IX standard:<br />

v The –i option<br />

v The &&and || operators<br />

v The if ... else ... statement<br />

v Identifiers of more than one character or containing characters outside the<br />

P<strong>OS</strong>IX character set<br />

v The print statement<br />

v The sh statement<br />

v The optional parentheses in the return statement<br />

In a doublebyte environment, remember that only numbers and operators from the<br />

P<strong>OS</strong>IX character set can be used. Identifiers can use characters from the current<br />

locale; if you want scripts to be portable, use only characters from the P<strong>OS</strong>IX<br />

character set.<br />

bc<br />

Chapter 2. Shell command descriptions 65

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!