Shell built-in commands – HP NonStop G-Series User Manual

Page 33

Advertising
background image

Table 2 Shell Metacharacters (continued)

Description

Metacharacter

Redirects output to a specified file.

>

Redirects input and specifies that the shell should read input up to a specified line.

<<

Redirects output to the end of a specified file.

>>

Redirects both diagnostic and standard output and appends them to a specified file.

>&

Expansion/Substitution

Specifies variable substitution.

${.}

Specifies job number substitution.

%

Specifies command output substitution.

'.'

Shell Built-In Commands

A shell built-in command is a command that is executed by the shell and runs entirely within the
shell itself. No subshell is required for the process created by a shell built-in command. (Other
commands, when executed, start a subshell for their process.)

Table 3

lists the shell built-in commands.

Table 3 Shell Built-In Commands

Description

Command

Creates one or more DEFINEs for the current OSS shell.

add_define(1)

Lists or defines an alias.

alias(1)

Put jobs in the background.

bg(1)

Exits from an enclosing loop.

break(1)

Changes the current working directory. (Both a regular form and a shell built-in
form of cd are included with the OSS shell.)

cd(1)

Resumes the next iteration of an enclosing loop.

continue(1)

Deletes one or more DEFINEs for the current OSS shell.

del_define(1)

Writes its arguments to standard output. (Both a regular form and a shell built-in
form of echo are included with the OSS shell.)

echo(1)

Reads arguments and executes commands.

eval(1)

Executes a command.

exec(1)

Exits the shell.

exit(1)

Exports variables.

export(1)

Lists, edits, and reexecutes commands previously entered in the shell.

fc(1)

Brings specified jobs to the foreground.

fg(1)

Parses command line flags and arguments.

getopts(1)

Affects the shell’s memory of the location of the utilities.

hash(1)

Displays a list of previously executed commands (the history list).

history(1)

Displays attributes and values of existing DEFINEs.

info_define(1

)

Lists information about jobs.

jobs(1)

Shell Built-In Commands

33

Advertising
This manual is related to the following products: