Document that only one of the -n and -e options may be specified for

sh(1)'s echo(1) builtin command.

PR:		32935, 40747
MFC after:	1 week
This commit is contained in:
Tim J. Robbins 2002-07-20 04:39:23 +00:00
parent 21a7fd75c3
commit 558175ca15
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=100395

View File

@ -1332,7 +1332,11 @@ This is the default.
A synonym for the
.Ic cd
builtin command.
.It Ic echo Oo Fl en Oc Ar string
.It Xo
.Ic echo
.Op Fl e | Fl n
.Op Ar string
.Xc
Print
.Ar string
to the standard output with a newline appended.
@ -1386,6 +1390,12 @@ $ echo -e a\e\e\e\eb
a\eb
.Ed
.El
.Pp
Only one of the
.Fl e
and
.Fl n
options may be specified.
.It Ic eval Ar string ...
Concatenate all the arguments with spaces.
Then re-parse and execute the command.