01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

KSH ( 1 ) KSH(l)<br />

?, the remainder of this word is used as a prompt when the<br />

shell is interactive. If the given file descriptor is open for<br />

writing and is a terminal device then the prompt is placed<br />

on this unit. Otherwise the prompt is issued on file<br />

descriptor 2. The return code is 0 unless an end-of-file is<br />

encountered.<br />

readonly [ name ••• ]<br />

The given names are marked readonly and these names<br />

cannot be changed by subsequent assignment.<br />

return [ n ]<br />

Causes a shell function to return to the invoking script<br />

with the return status specified by n. If n is omitted then<br />

the return status is that of the last command executed. If<br />

return is invoked while not in a function then it is the<br />

same as an exit.<br />

set [ -aefhkmnotuvx ] [ - o option ••• ] [ arg ••• ]<br />

The flags for this command have meaning as follows:<br />

-a All subsequent parameters that are defined are<br />

automatically exported.<br />

-e If the shell is non-interactive and if a command<br />

fails, execute the ERR trap, if set, and exit<br />

immediately. This mode is disabled while reading<br />

-f<br />

-h<br />

profiles.<br />

Disables file name generation.<br />

Each command whose name is an identifier<br />

becomes a tracked alias when first encountered.<br />

-k All parameter assignment arguments are placed in<br />

the environment for a command, not just those<br />

that precede the command name.<br />

-m Background jobs will run in a separate process<br />

group and a line will print upon completion. The<br />

exit status of background jobs is reported in a<br />

completion message. On systems with job control,<br />

this flag is turned on automatically for interactive<br />

shells.<br />

-n Read commands but do not execute them.<br />

- o The following argument can be one of the following<br />

option names:<br />

allexport Same as -a.<br />

errexit<br />

emacs<br />

Same as -e.<br />

Puts you in an emacs style in-line<br />

editor for command entry.<br />

gmacs Puts you in a gmacs style in-line editor<br />

for command entry.<br />

ignoreeof The shell will not exit on end-of-file.<br />

The command exit must be used.<br />

- 24 -

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

Saved successfully!

Ooh no, something went wrong!