Hamilton C shell Language Reference



Statement Relationships

In order of decreasing precedence:

Operator
Meaning
( ) Grouping
>   >!   >&   >&!   >>   >>!   >>&   >>&!   <   << I/O Redirection
|   |& Piping (stdout only or stdout + stderr) between concurrent operations
... & Background thread or process
&&    || Conditional execution: only if first succeeds or only if first fails
; Serial execution


I/O Redirection

Operator
Meaning
>   >!   >&   >&! Output to a file ("!" allows an existing file to be overwritten; "&" redirects both stdout and stderr.)
>>   >>!   >>&   >>&! Append to a file
< In from a file
<< string Inline data: the text on the following lines, up to the line containing only the specified string will be fed as stdin to the statement. Unless part of string is escaped or single, double or backquoted, command and variable substitution will be done on the inline text.

The grammar is completely recursive, so statements of arbitrary complexity can be freely nested, conditionally executed, piped or redirected.



Previous Topic | Next Topic

Hamilton C shell | Free Updates | Free Demo Software | Win32 Training
Y2K | Customer Testimonials | On-line Hamilton C shell User Guide
Home | Email | Support | Company Profile | Distributors | Links



Copyright © 1997-2001 by Hamilton Laboratories. All rights reserved.
You are visitor number 1211. This page was last modified August 9, 2001.