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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Localization<br />

Exit Values<br />

Messages<br />

$HOME/.profile for a login shell) under the privileged option or when the<br />

real and effective UIDs are different, or the real and effective GIDs are<br />

different.<br />

sh uses the following localization environment variables:<br />

v LANG<br />

v LC_ALL<br />

v LC_COLLATE<br />

v LC_CTYPE<br />

v LC_MESSAGES<br />

v LC_SYNTAX<br />

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

0 Successful completion<br />

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

v The shell was invoked with an incorrect option.<br />

v The shell was invoked to run a shell script and the command.<br />

v A command syntax error.<br />

v A redirection error.<br />

v A variable expansion error.<br />

Otherwise, the exit status of the shell defaults to the exit status of the last command<br />

run by the shell. This default can be overridden by explicit use of the exit or return<br />

commands.The exit status of a pipeline is the exit status of the last command in the<br />

pipeline.<br />

Ambiguous redirection<br />

A redirection construct expanded to more than one pathname.<br />

Argument too long<br />

Any single argument to a command is limited in length (see “Limits” on<br />

page 577). <strong>Command</strong> and parameter substitution may exceed this limit.<br />

Cannot restore privileged state<br />

This message occurs only when the implementation of P<strong>OS</strong>IX does not<br />

support the saved IDs option (_P<strong>OS</strong>IX_SAVED_IDS). The message is<br />

generated if you tried to use a saved ID feature to return to a privileged<br />

state.<br />

File file already exists<br />

You are attempting to redirect output into an existing file, but you have<br />

turned on the noclobber option (see the set command). If you really want<br />

to redirect output into an existing file, use the construct >|filename, or turn<br />

off the option with:<br />

set +o noclobber<br />

File descriptor number already redirected<br />

You attempted to redirect a file descriptor that was already being redirected<br />

in the same command. You can redirect a file descriptor only once.<br />

sh<br />

Chapter 2. Shell command descriptions 575

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

Saved successfully!

Ooh no, something went wrong!