MPE/iX Shell and Utilities Reference Manual, Vol 2
print(1) MPE/iX Shell and Utilities print(1)
NAME
print — display arguments from the shell
SYNOPSIS
print [–npRrs][–u[descriptor]] [argument ...]
DESCRIPTION
Calling print without options or with only the – option outputs each argument to the stan-
dard output using the same escape conventions as echo(1). In this case, print and echo
have the same functionality; see echo(1). The options accepted by print increase its func-
tionality beyond that of echo.
Options
print accepts the following options:
–n does not automatically add a newline to the end of the output.
–p sends output to a co-process. For a description of a co-process, see sh(1).
–R is similar to –r except that print treats all subsequent options (except –n) as argu-
ments rather than as options.
–r ignores escape conventions.
–s appends output to the command history file rather than sending it to standard output.
–u[descriptor]
redirects the output to the file corresponding to the single digit file descriptor. The
default file descriptor is 1.
DIAGNOSTICS
Possible exit status values are:
0 Successful completion.
1 An error occurred.
Messages
Because this utility is built into the
MPE/iX Shell, see the sh(1) man page for a complete list of
error messages that you may receive when using it.
PORTABILITY
x/OPEN Portability Guide 4.0..
print is a built-in command of the KornShell on UNIX, but not of the Bourne Shell.
Commands and Utilities 1-437