Hamilton LaboratoriesHamilton C shell 2012User guide

Language reference

Oregon Coast

Basic statements
Previous | Next

Topics

Syntax
Command line size limit
Path hashing
See also

Syntax

A basic statement is a command name plus any argument words to be passed to it. For example:

notepad hello.txt cp hello.* ~Public

Wildcarding, as shown here with the * and ~ characters, is done by the shell and the results passed to the command as the expanded list of arguments.

Individual statements are parsed into a series of words separated by white space (spaces or tabs) or these special tokens that allow stdio to be redirected, e.g., with > or < and for statements to be joined together, e.g., serially with ;, conditionally with && or in a pipeline with |:

& | ; > < ( ) && || >> << >& >! >&!

Command line size limit

Up to 32K characters can be passed on the command line to a child process. That’s the limit of the Windows kernel, not the C shell; there is no limit on overall command line length in the C shell itself.

Path hashing

Hamilton C shell maintains a hash structure which allows it to quickly search for a suitable .csh, .exe, .com, .cmd or .bat file in that order in each of the first 256 path directories.

See also

Hamilton C shell command line options
Order of evaluation
Wildcarding
I/O redirection
Statement relationships
Builtin utilities
External utilities
Tutorial: Getting started
Tutorial: Wildcarding
Tutorial: I/O redirection
Tutorial: Utilities

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.