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.

Chapter 2. Shell command descriptions<br />

Following are the descriptions of all the commands for the z/<strong>OS</strong> shell. The<br />

descriptions are listed in alphabetic order. For instructions on how to read the<br />

command descriptions, see “Reading the command descriptions” on page 1.<br />

The z/<strong>OS</strong> shell is based on the KornShell that originated on a <strong>UNIX</strong> system. As<br />

implemented for z/<strong>OS</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong>, this shell conforms to P<strong>OS</strong>IX<br />

standard 1003.2-1992.<br />

Restriction: z/<strong>OS</strong> <strong>UNIX</strong> shell commands can only read a large format sequential<br />

data set that has no more than 65,535 tracks of data on any single volume.<br />

This information assumes that your z/<strong>OS</strong> system includes the Resource Access<br />

Control Facility (RACF). Instead of RACF, your system could have an equivalent<br />

security product.<br />

alias — Display or create a command alias<br />

Format<br />

Description<br />

alias [–tx] [name[=value] ...]<br />

alias –r<br />

tcsh shell: alias [name [wordlist ]]<br />

When the first word of a shell command line is not a shell keyword, alias causes<br />

the shell to check for the word in the list of currently defined aliases. If it finds a<br />

match, the shell replaces the alias with its associated string value. The result is a<br />

new command line that might begin with a shell function name, a built-in command,<br />

an external command, or another alias.<br />

When the shell performs alias substitution, it checks to see if value ends with a<br />

blank. If so, the shell also checks the next word of the command line for aliases.<br />

The shell then checks the new command line for aliases and expands them,<br />

following these same rules. This process continues until there are no aliases left on<br />

the command line, or recursion occurs in the expansion of aliases.<br />

Calling alias without parameters displays all the currently defined aliases and their<br />

associated values. Values appear with appropriate quoting so that they are suitable<br />

for reinput to the shell.<br />

Calling alias with parameters of the form name=value creates an alias for each<br />

name with the given string value.<br />

If you are defining an alias where value contains a backslash character, you must<br />

precede it with another backslash. The shell interprets the backslash as the escape<br />

character when it performs the expansion. If you use double quotes to enclose<br />

value, you must precede each of the two backslashes with an additional backslash,<br />

because the shell escapes characters—that is, the shell does not interpret the<br />

character as it normally does—both when assigning the alias and again when<br />

expanding it.<br />

© Copyright IBM Corp. 1996, 2007 11

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

Saved successfully!

Ooh no, something went wrong!