Hamilton LaboratoriesHamilton C shell 2012User guideLanguage reference

Statement relationships

Oregon Coast

Statement relationships
Previous | Next

Topics

Syntax and description
See also

Syntax and description

In order of decreasing precedence:

Operator Meaning
(    )

Grouping

>    >!   >&   >&!
>>   >>!  >>&  >>&!
<    <<

I/O Redirection

|    |&

Piping (stdout only or stdout + stderr) between concurrent operations

&

At the end of a statement, execute the statement as a background thread or process

&&   ||

Conditional execution: only run the second statement if the first succeeds (zero return code) or only if the first fails (non-zero return code)

;

Serial execution

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

See also

Basic statements
I/O redirection
Expression operators
Order of evaluation
Tutorial: Programming constructs
Tutorial: I/O redirection and piping
Tutorial: Expressions

Previous | Next

Getting started with Hamilton C shell

Hamilton C shell, as it first wakes up.

Getting started with Hamilton C shell

A first few commands.

You can set the screen colors to your taste.

You can set the screen colors to your taste.