Intel XENIX 286 Programmers Guide (86) - Tenox.tc

Intel XENIX 286 Programmers Guide (86) - Tenox.tc Intel XENIX 286 Programmers Guide (86) - Tenox.tc

09.06.2013 Views

XENIX Programming csh: C Shell Special Characters The following list summarizes the special characters recognized by csh. Syntactic metacharacters ( ) Separates commands to be executed sequentially Separates commands in a pipeline Brackets expressions and variable values & Follows commands to be executed without waiting for completion File name metacharacters I Separates components of a file's path name Separates root parts of a file name from extensions ? Expansion character matching any single character * Expansion character matching any sequence of characters [ ] Expansion sequence matching any single character from a set of characters Used at the beginning of a file name to indicate home directory {} Used to specify groups of arguments with com mon parts Quotation metacharacters \ Treat following single character as literal Treat enclosed characters as literal Like ', but allows variable and command expansion Input/ output metacharacters < Indicates redirected input > Indicates redirected output 8-21

csh: C Shell Expansion/substitution metacharacters $ Indicates variable substitution Indicates history substitution Precedes substitution modifiers Used in special forms of history substitution Indicates command substitution Other metacharacters # Begins scratch file names; indicates C shell comm ents 8-22 Prefixes option (flag) arguments to commands XENIX Programming

<strong>XENIX</strong> Programming csh: C Shell<br />

Special Characters<br />

The following list summarizes the special characters recognized by csh.<br />

Syntactic metacharacters<br />

( )<br />

Separates commands to be executed sequentially<br />

Separates commands in a pipeline<br />

Brackets expressions and variable values<br />

& Follows commands to be executed without waiting for completion<br />

File name metacharacters<br />

I Separates components of a file's path name<br />

Separates root parts of a file name from extensions<br />

? Expansion character ma<strong>tc</strong>hing any single character<br />

* Expansion character ma<strong>tc</strong>hing any sequence of characters<br />

[ ]<br />

Expansion sequence ma<strong>tc</strong>hing any single character from a set of characters<br />

Used at the beginning of a file name to indicate home directory<br />

{} Used to specify groups of arguments with com mon parts<br />

Quotation metacharacters<br />

\ Treat following single character as literal<br />

Treat enclosed characters as literal<br />

Like ', but allows variable and command expansion<br />

Input/ output metacharacters<br />

< Indicates redirected input<br />

> Indicates redirected output<br />

8-21

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

Saved successfully!

Ooh no, something went wrong!