print

Usage

print [--nonl|:n] [--nospace|:s] [--stderr|:e] expression [expression ...]

Aliases

echo

Description

Evaluate given expression(s) and print the results (separated by a single space character). Expressions not containing any special characters, such as brackets, quotes, $, or @ are considered as bare words and evaluate to themselves.

--nonl or :n can be used to avoid printing a trailing new-line.

--nospace or :s suppresses printing additional spaces between individual arguments.

--stderr or :e causes the command to print on standard error output.

print foo   bar;  # prints "foo bar"
print "foo   bar";  # prints "foo   bar"