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)<br />

KSH(I)<br />

Line feed and print current line. Has effect<br />

only in control mode.<br />

(New line) Execute the current line, regardless<br />

of mode.<br />

(Return) Execute the current line, regardless of<br />

mode.<br />

# Equivalent to I#< cr > . Useful for causing<br />

the current line to be inserted in the history<br />

without being executed.<br />

Special Commands.<br />

The following commands are executed in the shell process.<br />

Input/Output redirection is permitted. File descriptor 1 is the<br />

default output location. Parameter assignment lists preceding the<br />

command do not remain in effect when the command completes<br />

unless noted.<br />

: [ arg ... ]<br />

Parameter assignments remain in effect after the command<br />

completes. The command only expands parameters.<br />

A zero exit code is returned .<br />

• file [ arg ... ]<br />

Parameter assignments remain in effect after the command<br />

completes. Read and execute commands from file<br />

and return. The commands are executed in the current<br />

Shell environment. The search path specified by PATH �<br />

is used to find the directory containing file . If any argu- ·�<br />

ments arg are given, they become the positional parameters.<br />

Otherwise the positional parameters are unchanged.<br />

alias [ -tx ] [ name[ =value ] ... ]<br />

Alias with no arguments prints the list of aliases in the<br />

form name =value on standard output. An alias is<br />

defined for each name whose value is given. A trailing<br />

space in value causes the next word to be checked for alias<br />

substitution. The -t flag is used to set and list tracked<br />

aliases. The value of a tracked alias is the full pathname<br />

corresponding to the given name . The value becomes<br />

undefined when the value of PATH is reset but the<br />

aliases remain tracked. Without the -t flag, for each<br />

name in the argument list for which no value is given, the<br />

name and value of the alias is printed. The -x flag is<br />

used to set or print exported aliases. An exported alias is<br />

defined across sub-shell environments. Alias returns true<br />

unless a name is given for which no alias has been defined.<br />

bg [%job ]<br />

This command is only built-in on systems that support<br />

job control. Puts the specified job into the background.<br />

The current job is put in the background if job is not<br />

specified.<br />

break [ n ]<br />

Exit from the enclosing for , while, until, or select loop,<br />

- 20 -<br />

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

Saved successfully!

Ooh no, something went wrong!