home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: 5.7 Job Control Chapter 5
The C Shell
Next: 6. Pattern Matching
 

5.8 Invoking the Shell

The C-shell command interpreter can be invoked as follows:

csh [ options ] [ arguments ]

csh uses syntax resembling C and executes commands from a terminal or a file. Options -n , -v , and -x are useful when debugging scripts.

Options

-b

Allow the remaining command-line options to be interpreted as options to a specified command, rather than as options to csh itself.

-c

Execute commands located in first filename argument.

-e

Exit if a command produces errors.

-f

Fast start up; start csh without executing .cshrc or .login .

-i

Invoke interactive shell (prompt for input).

-n

Parse commands but do not execute.

-s

Read commands from the standard input.

-t

Exit after executing one command.

-v

Display commands before executing them; expand history substitutions but don't expand other substitutions (e.g., filename, variable, and command). Same as setting verbose .

-V

Same as -v , but also display .cshrc .

-x

Display commands before executing them, but expand all substitutions. Same as setting echo . -x is often combined with -v .

-X

Same as -x , but also display .cshrc .


Previous: 5.7 Job Control UNIX in a Nutshell: System V Edition Next: 6. Pattern Matching
5.7 Job Control Book Index 6. Pattern Matching

The UNIX CD Bookshelf Navigation The UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System