O'Reilly logo

Unix in a Nutshell, 4th Edition by Arnold Robbins

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Invoking the Shell

The tcsh shell can be invoked as follows:

tcsh [ options ] [ arguments ]

tcsh executes commands from a terminal or a file. The 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 tcsh itself.

-c

Read and execute commands specified by the argument that follows and place any remaining arguments in the argv shell variable.

-d

Load directory stack from ~/.cshdirs even if not a login shell.

-e

Exit if a command produces errors.

-f

Fast startup; start without executing .tcshrc or .login.

-i

Invoke interactive shell (prompt for input) even if not on a terminal.

-l

Login shell (must be the only option specified).

-m

Load ~/.tcshrc even if effective user is not the owner of the file.

-n

Parse commands, but do not execute.

-q

Accept SIGQUIT when used under a debugger. Disables job control.

-s

Read commands from the standard input.

-t

Exit after executing one line of input (which may be continued with a \ to escape the newline).

-v

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

-V

Same as -v, but also display .tcshrc.

-x

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

-X

Same as -x, but also display .tcshrc.

Arguments

Arguments are assigned, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required