display arguments from the KornShell 

KornShell Built-in


print [-f format] [-npRrs] [-u[descriptor]] [argument...]


Calling print without options or with only the - option outputs each argument to the standard output using the same escape conventions as echo. In this case, print and echo have the same functionality. The options accepted by print increase its functionality beyond that of echo.


-f format 

uses the specified format string to format the output. The format string specified with this option is the same as the format string used by the printf utility.


does not automatically add a newline to the end of the output.


sends output to a co-process. For a description of a co-process, see sh.


is similar to -r except that print treats all subsequent options (except -n) as arguments rather than as options.


ignores escape conventions.


appends output to the command history file rather than sending it to standard output.


redirects the output to the file corresponding to the single digit file descriptor. The default file descriptor is 1.


Possible exit status values are:


Successful completion.


Failure due to any of the following:

— invalid descriptor specified with -u
— non-existent co-process

Failure because of an invalid command line option.

Cannot print on file descriptor ... 

You tried to print on a file descriptor that was not opened for writing.

History not available 

You specified the -s option to write into a history file, but at present you are not using a history file.


Windows 8.1. Windows Server 2012 R2. Windows 10. Windows Server 2016. Windows Server 2019. Windows 11. Windows Server 2022.

print is a built-in command of the KornShell on UNIX, but not of the Bourne Shell. It is an extension to the POSIX.2 and XPG standards.


print is an alias built into the MKS KornShell and should not be confused with the Windows print command.


PTC MKS Toolkit for Power Users
PTC MKS Toolkit for System Administrators
PTC MKS Toolkit for Developers
PTC MKS Toolkit for Interoperability
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
PTC Windchill Requirements and Validation


echo, fc, printf, read, sh

PTC MKS Toolkit 10.4 Documentation Build 39.