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.

Usage notes<br />

Localization<br />

Exit Values<br />

–p Disables the processing of $HOME/.profile for a login shell and disables<br />

the processing of the script specified by the ENV variable. If<br />

/etc/suid_profile exists, sh runs it instead of the ENV script.<br />

–P Runs the last command of a pipeline in the current shell environment.<br />

–s Sorts the positional parameters.<br />

–t Exits after reading and running one command.<br />

–u Tells the shell to issue an error message if an unset parameter is used in a<br />

substitution.<br />

–v Prints shell input lines as they are read.<br />

–x Prints commands and their arguments as they run.<br />

Other options:<br />

– Turns off the –v and –x options. Also, parameters that follow this option do<br />

not set shell flags, but are assigned to positional parameters (see sh).<br />

–– Specifies that parameters following this option do not set shell flags, but are<br />

assigned to positional parameters.<br />

+A name<br />

Assigns the parameter list specified on the command line to the array<br />

elements of the variable name, starting at name[0]. For example, the<br />

following command assigns the values ″a″, ″b″, ″c″ and ″d″ to the array<br />

elements array[0-3]:<br />

set +A array a b c d<br />

echo ${array[*]}<br />

a b c d<br />

–A name<br />

Unsets the variable name and then assigns the parameter list specified on<br />

the command line to the array elements of the variable name starting at<br />

name[0]. For example, if the variable array contains 4 elements, the<br />

following command discards the previous values and assigns the values ″x″<br />

and ″y″ to the array elements array[0-1]:<br />

set -A array a y<br />

echo ${array[*]}<br />

x y<br />

set is a special built-in shell command.<br />

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

v LANG<br />

v LC_ALL<br />

v LC_MESSAGES<br />

v NLSPATH<br />

See Appendix F for more information.<br />

0 Successful completion<br />

1 Failure due to an incorrect command-line argument<br />

2 Failure resulting in a usage message, usually due to a missing argument<br />

set<br />

Chapter 2. Shell command descriptions 543

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

Saved successfully!

Ooh no, something went wrong!