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.

tcsh<br />

up-history (up-arrow, ^P)<br />

Copies the previous entry in the history list into the input buffer. If histlit is<br />

set, uses the literal form of the entry. May be repeated to step up through<br />

the history list, stopping at the top.<br />

vi-search-back (?)<br />

Prompts with ? for a search string (which may be a glob-pattern, as with<br />

history-search-backward), searches for it and copies it into the input<br />

buffer. The bell rings if no match is found. Hitting return ends the search<br />

and leaves the last match in the input buffer. Hitting escape ends the<br />

search and executes the match. vi mode only.<br />

vi-search-fwd (/)<br />

Like vi-search-back, but searches forward.<br />

which-command (M-?)<br />

Does a which (built-in command) on the first word of the input buffer.<br />

which displays the command that will be executed by the shell after<br />

substitutions and path searching. The displayed command has passed<br />

access checks by the security product based on the effective ids of the<br />

user.<br />

<strong>Command</strong> syntax<br />

The tcsh shell splits input lines into words at blanks and tabs. The special<br />

characters ’&’, ’|’, ’;’, ’’, ’(’, and ’)’ and the doubled characters ’&&’, ’||’, ’’ are always separate words, whether or not they are surrounded by whitespace.<br />

When the tcsh shell’s input is not a terminal, the character ’#’ is taken to begin a<br />

comment. Each # and the rest of the input line on which it appears is discarded<br />

before further parsing.<br />

A special character (including a blank or tab) may be prevented from having its<br />

special meaning, and possibly made part of another word, by preceding it with a<br />

backslash (\) or enclosing it in single ( ’ ), double ( ″ ) or backward (’ ` ’) quotes.<br />

When not otherwise quoted a newline preceded by a \ is equivalent to a blank, but<br />

inside quotes this sequence results in a newline.<br />

Furthermore, all substitutions (see “Substitutions” on page 637) except history<br />

substitution can be prevented by enclosing the strings (or parts of strings) in which<br />

they appear with single quotes or by quoting the crucial characters (e.g. ’$’ or ’ `’ for<br />

variable substitution or command substitution respectively) with \. (alias substitution<br />

is no exception: quoting in any way any character of a word for which an alias has<br />

been defined prevents substitution of the alias. The usual way of quoting an alias is<br />

to precede it with a backslash.) History substitution is prevented by backslashes but<br />

not by single quotes. Strings quoted with double or backward quotes undergo<br />

Variable substitution and <strong>Command</strong> substitution, but other substitutions are<br />

prevented.<br />

Text inside single or double quotes becomes a single word (or part of one).<br />

Metacharacters in these strings, including blanks and tabs, do not form separate<br />

words. Only in one special case (see “<strong>Command</strong> substitution” on page 643) can a<br />

double-quoted string yield parts of more than one word; single-quoted strings never<br />

do. Backward quotes are special: they signal command substitution, which may<br />

result in more than one word.<br />

Quoting complex strings, particularly strings which themselves contain quoting<br />

characters, can be confusing. Remember that quotes need not be used as they are<br />

636 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!