summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorschweikh <schweikh@FreeBSD.org>2003-05-08 17:47:28 +0000
committerschweikh <schweikh@FreeBSD.org>2003-05-08 17:47:28 +0000
commitb9b6f9fc33915e768396681ecacba4b60949cbca (patch)
treee1c21e09dcf49beabe779507a96ab62eb8076a4b
parentb193faf3696bb43fdcba2ebe2f94c58a8095ed33 (diff)
downloadFreeBSD-src-b9b6f9fc33915e768396681ecacba4b60949cbca.zip
FreeBSD-src-b9b6f9fc33915e768396681ecacba4b60949cbca.tar.gz
Note that -n and \c are implementation-defined as per TC1 to POSIX 2001.
Approved by: re@ (bmah) MFC after: 3 days
-rw-r--r--bin/echo/echo.113
1 files changed, 11 insertions, 2 deletions
diff --git a/bin/echo/echo.1 b/bin/echo/echo.1
index 694c573..e498af7 100644
--- a/bin/echo/echo.1
+++ b/bin/echo/echo.1
@@ -58,11 +58,20 @@ output.
The following option is available:
.Bl -tag -width flag
.It Fl n
-Do not print the trailing newline character. This may also be
-achieved by appending
+Do not print the trailing newline character.
+This may also be achieved by appending
.Ql \ec
to the end of the string, as is done
by iBCS2 compatible systems.
+Note that this option as well as the effect of
+.Ql \ec
+are implementation-defined in
+.St -p1003.1-2001
+as amended by Cor. 1-2002.
+Applications aiming for maximum
+portability are strongly encouraged to use
+.Xr printf 1
+to suppress the newline character.
.El
.Pp
Some shells may provide a builtin
OpenPOWER on IntegriCloud