If the first command-line argument is a -, the C shell is started as a login shell. In addition to this, the C shell supports the command-line options listed in Figure 8-44.
Figure 8-44. C shell command-line options.
Option
Meaning
-c string
Create a shell to execute the command string.
-e
Shell terminates if any command returns a nonzero exit code.
-f
Start shell but don't search for or read commands from ".tcshrc" or ".cshrc."
-i
Create an interactive shell; like the -s option except that the SIGTERM, SIGINT, and SIGQUIT messages are all ignored.
-n
Parse commands but do not execute them; for debugging only.
-s
Create a shell that reads commands from standard input and sends shell messages to the standard error channel.
-t
Read and execute a single line from standard input.
-v
Causes $verbose to be set, which was described earlier.
-V
Like -v, except that $verbose is set before ".tcshrc" is executed.
-x
Causes the $echo variable to be set, which was described earlier.
-X
Like -x, except that $echo is set before ".tcshrc" is read.
fileName
Execute the shell commands in fileName if none of the -c, -i, -s, or -t options are used. fileName is $0 within the fileName script.