Usage
Predefined shared variables
See also
These shell variables are shared across the entire C shell process among all threads. If one thread changes the value of any of these variables, the change is instantly seen by all other threads.
These specific shell variables are read-only.
In contrast to environment variables, all shell variables are case-sensitive.
Name | Default | Use |
---|---|---|
$ |
A synonym for the processid variable when typed as $$. |
|
bsdhistory | 0 |
By default, !! is the immediately preceding command and !-1 is the one before that. Setting bsdhistory = 1 makes them the same. |
cdpath | null |
Same as the CDPATH environmental variable, broken into words. |
cshtitle |
Same as the CSHTITLE environmental variable. |
|
escapesym | ^ |
Character to be interpreted as a literal escape character. Same as the ESCAPESYM environmental variable. |
histchars | !% |
Characters which introduce long-form and short-form history references, respectively. |
home |
Same as the HOME environmental variable. |
|
NTVersion |
Obsolete name for the WinBuild variable. |
|
OperatingSystem |
Name of the operating system on which the shell is running. Possible values are Windows NT and Windows 9x. |
|
path |
Same as the PATH environmental variable, broken into words. |
|
processid |
The unique process ID assigned by the Windows kernel to this copy of the C shell. |
|
prompt1 | $@ $CDISK% |
Same as PROMPT1 environmental variable. |
prompt2 | $@ $CDISK? |
Same as PROMPT2 environmental variable. |
savehist | 0 |
Save the history contents into history.csh in the home directory. |
shell |
Same as the SHELL environmental variable. |
|
WinBuild |
Build number of the Windows system on which the shell is running, e.g., 7601 for Windows 7. |
|
WinVersion |
Version number of the Windows API on which the shell is running, e.g., 6.1 for Windows 7. |
@, calc, set, setenv and local
Variable substitution
Substitution modifiers
Predefined environment variables
Predefined inherited variables
Predefined initialized variables
Combined list of predefined variables
Tutorial: Variables
Tutorial: Editing