echo

Name

echo -- display a line of text

Synopsis

echo [STRING...]

Description

The echo command is as specified in ISO POSIX (2003), but with the following differences.

Unlike the behavior specified in ISO POSIX (2003), whether echo supports options is implementation defined. The behavior of echo if any arguments contain backslashes is also implementation defined. Conforming applications shall not run echo with a first argument starting with a hyphen, or with any arguments containing backslashes; they shall use printf in those cases.

Note: The behavior specified here is similar to that specified by ISO POSIX (2003) without the XSI option. However, the LSB forbids all options and the latter forbids only -n.