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.

alias<br />

Options<br />

To avoid using four backslashes to represent a single backslash, use single quotes<br />

rather than double quotes to enclose value, because the shell does not escape<br />

characters enclosed in single quotes during assignment. As a result, the shell<br />

escapes characters in single quotes only when expanding the alias.<br />

Calling alias with name without any value assignment displays the function name<br />

(name) and its associated string value (value) with appropriate quoting.<br />

DBCS Recommendation: We recommend that you use singlebyte characters when<br />

specifying an alias name, because the P<strong>OS</strong>IX standard states that alias names<br />

must contain only characters in the P<strong>OS</strong>IX portable character set.<br />

alias in the tcsh shell<br />

Without arguments, alias in the tcsh shell prints all aliases. With name, alias prints<br />

the alias for name. With name and wordlist, alias assigns wordlist as the alias of<br />

name. wordlist is command and filename substituted. name may not be alias or<br />

unalias.<br />

See also unalias in the tcsh shell.<br />

–r Removes all tracked aliases.<br />

–t Makes each name on the command line a tracked alias. Each tracked alias<br />

resolves to its full pathname; the shell thus avoids searching the PATH<br />

directories whenever you run the command. The shell assigns the full<br />

pathname of a tracked alias to the alias the first time you invoke it; the shell<br />

reassigns a pathname the first time you use the alias after changing the<br />

PATH variable.<br />

When you enter the command:<br />

set –h<br />

each subsequent command you use in the shell automatically becomes a<br />

tracked alias. Running alias with the –t option, but without any specified<br />

names, displays all currently defined tracked aliases with appropriate<br />

quoting.<br />

–x Marks each alias name on the command line for export. If you specify –x<br />

without any names on the command line, alias displays all exported<br />

aliases. Only exported aliases are passed to a shell that runs a shell script.<br />

Several aliases are built into the shell. Some of them are:<br />

alias autoload="typeset –fu"<br />

alias functions="typeset –f"<br />

alias hash="alias –t"<br />

alias history="fc –l"<br />

alias integer="typeset –i"<br />

alias nohup="nohup "<br />

alias r="fc –s"<br />

alias stop="kill –STOP"<br />

alias suspend="stop \$\$"<br />

You can change or remove any of these aliases, and the changes will remain in<br />

effect for the current shell and any shell scripts or child shells invoked implicitly from<br />

the command. These aliases are reset to their default built-in values each time a<br />

new shell is invoked from the command line.<br />

12 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference

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

Saved successfully!

Ooh no, something went wrong!