Environmental variables are passed to any child processes or screens you create by invoking an external utility or application. When Hamilton C shell starts up it looks for the ones shown here to be defined in the environment it inherits. COLORS, COMSPEC, CSHTITLE, DUPLICATES, HIGHLIGHT, HOME, MATCHFAIL, PATH, PROMPT1, PROMPT2, and SHELL are special: if they’re not already defined, then the shell creates them.
Environmental variables are not case-sensitive, so, e.g., Path and PATH refer to the same thing.
Name
Default
Use
ADDITIONS Bright White on Green Lines added found by diff. ASCIICONVERT Bright Yellow ASCII files which received line end conversions by tar. CDPATH List of directories to search for the subdirectory specified as the new current directory. COLORS null Normal screen colors. COMSPEC Usually, this is the pathname of cmd.exe. If you set it to point to the C shell, e.g., so other programs will invoke the C shell rather than cmd.exe, the C shell will try to look through the search path for cmd.exe if it needs to run a .cmd file. CSHOPTIONS Default set of command line options to be pasted ahead of any other command line options passed to csh.exe. CSHTITLE Template for the title bar. Setting it to a null string causes the title bar inherited at startup to be displayed. Unsetting it causes “Hamilton C shell” to be displayed. Other values will be evaluated for command and variable substitutions the same way the prompt variables are interpreted. DELETIONS Bright White on Red Lines deleted found by diff. DIRECTORIES Bright Directories listed by ls. DRIVEMASK Used by du, pwd and vol and drive wildcarding (e.g., “*:foo.*”) to limit the default list of drives it will report on. Written as a list of alphabetic characters representing the drives you want listed; ranges are allowed. If you don’t define this variable, all drives beginning with C: are normally reported. DUPLICATES Green When filename completion matches more than one name. ESCAPESYM ^ Character to be interpreted as a literal escape character. Placed in the environment only if it is not the default circumflex. FOREIGNFILES Bright Red Filetypes in a tar file that have no counterparts on Windows. HIGHLIGHT Bright Current disk or directory. HOME Home directory (default is the initial current directory.) LATITUDE Latitude setting used by sunrise.csh to calculate sunrise and sunset times.. LONGITUDE Longitude setting used by sunrise.csh to calculate sunrise and sunset times.. LSOPTIONS Default set of command line options to be pasted ahead of any other command line options passed to ls. MATCHFAIL Bright Red When filename or command completion doesn’t match anything. MIXEDCASEDRIVES List of drives and UNC names for which ls, pwd, wildcarding and the fullname and current directory functions should report filenames in mixed case rather than all lower case. MOREEOF Green End or Top of File in more. MOREERROR Bright White on Red Unrecognizable command to more. MOREFILLIN Black User response to more prompt. MOREPROMPT Red on White Prompt line in more. MORETOPMEM Bright Yellow Top of Memory message from more. PATH Search path for executable files. PROMPT1 $@ $CDISK% Primary command prompt template. PROMPT2 $@ $CDISK? Continuation line prompt template. RADIX 16 Default radix used by more and other utilities when displaying binary data. READONLYDIRS Used by ls and other utilities for directories marked read-only. READONLYFILES Used by ls and other utilities for files marked read-only. SHELL Always set to the pathname of the Hamilton C shell csh file. SWITCHCHARS -/ Characters that can be used as option introducers for the shell and utilities. SYSTEMDIRS Bright Green Used by ls for directories with the System bit on. SYSTEMFILES Green Used by ls for files with the System bit on. TABS 8 Used by more, head, tail and tabs to tell them how many character positions there are between tab stops. TAPE \\.\tape0 Used by mt under Windows to specify the pathname of the default tape drive. TARASCII Used by tar to identify files, using a list of wildcards, that should be considered as ASCII, regardless of content. TARBINARY Used by tar to identify files, using a list of wildcards, that should be considered as binary, regardless of content.
Previous Topic |
Table of Contents
| Next Topic
Copyright © 1988-2003 by Hamilton Laboratories. All rights reserved.