02.05.2013 Views

Description - Mks.com

Description - Mks.com

Description - Mks.com

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The value of this variable is the name of a file of MKS KornShell <strong>com</strong>mands, or else be null.<br />

When the MKS KornShell is invoked, the file named by ENV is executed before the MKS<br />

KornShell does anything else. Thus your ENV file may contain definitions of aliases, shell<br />

functions, and son on that may be used by shell scripts. Note that your ENV file is executed,<br />

whether or not the MKS KornShell is invoked as a login shell. This differs from older<br />

releases of the MKS KornShell.<br />

HASHBANG<br />

If this variable is set then the #! feature of the MKS KornShell is enabled.<br />

HOME<br />

This variable is set by the shell's default startup files. It contains the name of your home<br />

directory. Your home directory is the default directory for the cd <strong>com</strong>mand built into the MKS<br />

KornShell.<br />

LINES<br />

If you set this variable to a numeric value, various <strong>com</strong>mands use its value as the number of<br />

lines available on the output device. This overrides the default.<br />

LOGNAME<br />

This variable is set by the shell's default startup files. It holds the user name of the current<br />

user.<br />

MAILER<br />

For <strong>com</strong>mands that send mail, this variable points at a mail delivery program. If this variable<br />

is not set, then the default mailer, mailx is invoked.<br />

PATH<br />

This variable is set to a default value when you start the MKS KornShell. Normally, it is also<br />

set in your profile file. It lists the directories that are to be searched to find <strong>com</strong>mands, as<br />

described in sh.<br />

ROOTDIR<br />

Because Windows systems have a multi-device file system, it is necessary to provide the<br />

location of the standard root directory for system files (for example, /etc/profile.ksh<br />

and /tmp). This variable contains a device name and possibly a directory where such files<br />

are found.<br />

SHELL<br />

This variable contains the full path name of the current shell. Note that if SHELL is not<br />

defined, all <strong>com</strong>mands that require the full path name of the current shell use the contents of<br />

the environment variable COMSPEC.<br />

328 of 457

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!