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
KSH ( 1) KSH(I) Line feed and print current line. Has effect only in control mode. (New line) Execute the current line, regardless of mode. (Return) Execute the current line, regardless of mode. # Equivalent to I#< cr > . Useful for causing the current line to be inserted in the history without being executed. Special Commands. The following commands are executed in the shell process. Input/Output redirection is permitted. File descriptor 1 is the default output location. Parameter assignment lists preceding the command do not remain in effect when the command completes unless noted. : [ arg ... ] Parameter assignments remain in effect after the command completes. The command only expands parameters. A zero exit code is returned . • file [ arg ... ] Parameter assignments remain in effect after the command completes. Read and execute commands from file and return. The commands are executed in the current Shell environment. The search path specified by PATH � is used to find the directory containing file . If any argu- ·� ments arg are given, they become the positional parameters. Otherwise the positional parameters are unchanged. alias [ -tx ] [ name[ =value ] ... ] Alias with no arguments prints the list of aliases in the form name =value on standard output. An alias is defined for each name whose value is given. A trailing space in value causes the next word to be checked for alias substitution. The -t flag is used to set and list tracked aliases. The value of a tracked alias is the full pathname corresponding to the given name . The value becomes undefined when the value of PATH is reset but the aliases remain tracked. Without the -t flag, for each name in the argument list for which no value is given, the name and value of the alias is printed. The -x flag is used to set or print exported aliases. An exported alias is defined across sub-shell environments. Alias returns true unless a name is given for which no alias has been defined. bg [%job ] This command is only built-in on systems that support job control. Puts the specified job into the background. The current job is put in the background if job is not specified. break [ n ] Exit from the enclosing for , while, until, or select loop, - 20 - �
KSH ( 1 ) KSH(l) if any. If n is specified then break n levels. continue [ n ] Resume the next iteration of the enclosing for, while, until, or select loop. If n is specified then resume at the nth enclosing loop. cd [ arg ] cd old new This command can be in either of two forms. In the first form it changes the current directory to arg . If arg is - the directory is changed to the previous directory. The shell parameter HOME is the default arg . The parameter PWD is set to the current directory. The shell parameter CDP ATH defines the search path for the directory containing arg . Alternative directory names are separated by a colon (:). The default path is (specifying the current directory). Note that the current directory is specified by a null path name, which can appear immediately after the equal sign or between the colon delimiters anywhere else in the path list. If arg begins with a / then the search path is not used. Otherwise, each directory in the path is searched for arg. The second form of cd substitutes the string new for the string old in the current directory name, PWD, and tries to change to this new directory. eval [ arg ••• ] The arguments are read as input to the shell and the resulting command(s) executed. exec [ arg ••• ] Parameter assignments remain in effect after the command completes. If arg is given, the command specified by the arguments is executed in place of this shell without creating a new process. Input/output arguments may appear and affect the current process. If no arguments are given the effect of this command is to modify file descriptors as prescribed by the input/output redirection list. In this case, any file descriptor numbers greater than 2 that are opened with this mechanism are closed when invoking another program. exit [ n] Causes the shell to exit with the exit status specified by n. If n is omitted then the exit status is that of the last command executed. An end-of-file will also cause the shell to exit except for a shell which has the ignoreeof option (see set below) turned on. export [ name ••• ] The given names are marked for automatic export to the environment of subsequently-executed commands. fc [ -e ename ] [ -nlr ] [first ] [ last ] - 21 -
- Page 332 and 333: GET(l) GET(l) TABLE 1. Determinatio
- Page 334 and 335: GET(l) GET(l) generated by the get.
- Page 337 and 338: GETOPT ( 1) GETOPT ( l ) NAME getop
- Page 339: GREEK (l) GREEK(l) NAME greek - sel
- Page 342 and 343: GREP ( 1) GREP (1) The order of pre
- Page 344 and 345: � '--- I I I I I I f)
- Page 346 and 347: · r1 . .... .. ._ _ . . r1 ' ·
- Page 348 and 349: HP(l) HP (1) is adjacent to an ASCl
- Page 351: ID ( 1 ) ID ( 1) NAME id - print us
- Page 355 and 356: IPCS ( 1) IPCS ( 1) NAME ipcs - rep
- Page 357 and 358: IPCS ( 1 ) OWNER GROUP CREATOR CGRO
- Page 359 and 360: JOIN ( 1 ) JOIN ( 1 ) NAME join - r
- Page 361: KILL (I) KILL(l) NAME kill - termin
- Page 364 and 365: KSH(l) KSH ( 1) A command is either
- Page 366 and 367: KSH ( 1) KSH ( 1) The following exp
- Page 368 and 369: KSH ( 1) KSH ( 1) ${parameter%patte
- Page 370 and 371: KSH ( 1) KSH(l) with the parameter
- Page 372 and 373: KSH ( 1) KSH(l) redirected using a
- Page 374 and 375: KSH ( 1) KSH(l) variables whose sco
- Page 376 and 377: KSH ( 1 ) KSH(l) Command Re-entry.
- Page 378 and 379: KSH(l) KSH(l) using paper terminals
- Page 380 and 381: KSH ( 1) KSH ( 1) [count]Tc Equival
- Page 384 and 385: KSH ( 1 ) KSH ( 1) fc -e - [ old= n
- Page 386 and 387: KSH ( 1 ) KSH(l) ?, the remainder o
- Page 388 and 389: KSH (l) KSH(l) test [ expr ] Evalua
- Page 390 and 391: KSH ( 1 ) KSH(l) ulimit [ -cdfmpt 1
- Page 393 and 394: LD ( 1 ) LD (1) NAME ld - link edit
- Page 395: LD ( 1 ) FILES LD ( 1) allow compat
- Page 398 and 399: LEX(l) LEX(l) EXAMPLE character def
- Page 401 and 402: LINT ( l ) LINT ( 1 ) NAME lint - a
- Page 403: LOGNAME ( l ) LOGNAME ( l ) NAME lo
- Page 406 and 407: I� �- '--- . ·
- Page 408 and 409: LP (l) LP (l) -ooption Specify prin
- Page 410 and 411: LPSTAT (l) LPSTAT (l) SEE ALSO enab
- Page 412 and 413: LS (l) LS (l) -f Force each argumen
- Page 415 and 416: M4 ( 1 ) M4 ( 1) NAME m4 - macro pr
- Page 417 and 418: M4 (1) undivert divnum dnl if else
- Page 419 and 420: MAIL ( 1) MAIL (l) NAME mail, rmail
- Page 421 and 422: MAKE(l) MAKE(l) NAME make - maintai
- Page 423 and 424: MAKE ( I) MAKE (l) MAKEFLAGS macro
- Page 425 and 426: MAKE(l) MAKE (I) .C .C - .Sh .sh- .
- Page 427 and 428: MAKE (l) MAKE (l) In the above exam
- Page 429 and 430: MAKEKEY (l) (Domestic Version Only
- Page 431 and 432: MESG ( 1) MESG ( 1) NAME mesg - per
KSH ( 1 ) KSH(l)<br />
if any. If n is specified then break n levels.<br />
continue [ n ]<br />
Resume the next iteration of the enclosing for, while,<br />
until, or select loop. If n is specified then resume at the<br />
nth enclosing loop.<br />
cd [ arg ]<br />
cd old new<br />
This command can be in either of two forms. In the first<br />
form it changes the current directory to arg . If arg is -<br />
the directory is changed to the previous directory. The<br />
shell parameter HOME is the default arg . The parameter<br />
PWD is set to the current directory. The shell<br />
parameter CDP ATH defines the search path for the<br />
directory containing arg . Alternative directory names are<br />
separated by a colon (:). The default path is <br />
(specifying the current directory). Note that the current<br />
directory is specified by a null path name, which can<br />
appear immediately after the equal sign or between the<br />
colon delimiters anywhere else in the path list. If arg<br />
begins with a / then the search path is not used. Otherwise,<br />
each directory in the path is searched for arg.<br />
The second form of cd substitutes the string new for the<br />
string old in the current directory name, PWD, and tries<br />
to change to this new directory.<br />
eval [ arg ••• ]<br />
The arguments are read as input to the shell and the<br />
resulting command(s) executed.<br />
exec [ arg ••• ]<br />
Parameter assignments remain in effect after the command<br />
completes. If arg is given, the command specified<br />
by the arguments is executed in place of this shell without<br />
creating a new process. Input/output arguments may<br />
appear and affect the current process. If no arguments are<br />
given the effect of this command is to modify file descriptors<br />
as prescribed by the input/output redirection list. In<br />
this case, any file descriptor numbers greater than 2 that<br />
are opened with this mechanism are closed when invoking<br />
another program.<br />
exit [ n]<br />
Causes the shell to exit with the exit status specified by n.<br />
If n is omitted then the exit status is that of the last command<br />
executed. An end-of-file will also cause the shell to<br />
exit except for a shell which has the ignoreeof option (see<br />
set below) turned on.<br />
export [ name ••• ]<br />
The given names are marked for automatic export to the<br />
environment of subsequently-executed commands.<br />
fc [ -e ename ] [ -nlr ] [first ] [ last ]<br />
- 21 -