See the UNIX Programmers Manual or via % man csh
% set
will display the current variables in effect and their values.
% set path = (. /usr/local /usr/ucb /usr/news /usr/bin ~kemp/bin)
When the C Shell tries to run a command it will look in the directories
listed in the path variable. The directory named . refers to the "current
working directory".
The directories are searched in the order listed in the path variable,
and ~kemp is shorthand for /va/kemp.
% set prompt="Yes, Master? "
will force your prompt to be changed from '%' to 'Yes, Master? '.
% set foo = `(ls|wc)`
will set the user-defined csh variable named foo equal to the output from
the pipe shown, i.e., if the current direcory is EMPTY, then foo will contain
(0 0 0)
after the command is processed. Note that the backquotes(`) are the
mechanism to accomplish this.
OPTIONS:
set [-eknptuvx [arg ...]]
-e If non interactive, exit immediately if a command fails.
-k All keyword arguments are placed in the environment
for a command, not just those that precede the command name.
-n Read commands but do not execute them.
-t Exit after reading and executing one command.
-u Treat unset variables as an error when substituting.
-v Print shell input lines as they are read.
-x Print commands and their arguments as they are executed.
- Turn off the -x and -v options.
These flags can also be used upon invocation of the shell.
The current set of flags may be found in $-.