02.07.2013 Views

A/UX® System Administrator's Reference Sections 1M, 7, and 8

A/UX® System Administrator's Reference Sections 1M, 7, and 8

A/UX® System Administrator's Reference Sections 1M, 7, and 8

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Start upShell (8) Start upShell (8)<br />

variables.<br />

The following variables are built into the NUX Startup shell:<br />

PATH Specify the search path for comm<strong>and</strong>s (see<br />

the section "Program Execution Environment"<br />

below).<br />

P S 1 Specify the prompt string, by default<br />

"startup* ."<br />

T z Specify the NUX time-zone variable (see<br />

environ(5)).<br />

HOME Specify the default argument (home directory)<br />

for the cd <strong>and</strong> chdi r comm<strong>and</strong>s.<br />

ROOT Specify the default argument (home root) for<br />

the chroot comm<strong>and</strong>.<br />

autorecovery Specify the comm<strong>and</strong> string for verifying the<br />

integrity of the file system.<br />

autolaunch Specify the comm<strong>and</strong> string for the kernel<br />

launch program (see below).<br />

cwd Specify the current working directory of the<br />

shell.<br />

cwroot Specify the current working root of the shell.<br />

? Specify the exit status returned by the last<br />

comm<strong>and</strong> executed.<br />

The shell gives initial values to all the above variables. The<br />

values persist across invocations of NUX Startup even if the variable<br />

is not exported (see export in the section "Built-in Comm<strong>and</strong>s").<br />

There is a limit on the number of variables that can exist.<br />

The limit is normally 20, but can be changed by modifying a<br />

resource.<br />

Program Execution Environment<br />

The shell interprets each line of input as a single comm<strong>and</strong>. The<br />

first word in the comm<strong>and</strong> line is interpreted as the name of the<br />

comm<strong>and</strong> to be executed.<br />

If a comm<strong>and</strong> name matches one of the special comm<strong>and</strong>s built<br />

into the shell (see the section "Built-in Comm<strong>and</strong>s"), it is executed<br />

in the shell process. If the comm<strong>and</strong> name does not match a<br />

special comm<strong>and</strong>, a search for a program of the same name occurs<br />

in the search paths stored in the PATH variable.<br />

February, 1990 3<br />

Revision C

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

Saved successfully!

Ooh no, something went wrong!