Note that -n and \c are implementation-defined as per TC1 to POSIX 2001.
Approved by: re@ (bmah) MFC after: 3 days
This commit is contained in:
parent
55566e93bb
commit
005fd5b64b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=114845
@ -58,11 +58,20 @@ output.
|
|||||||
The following option is available:
|
The following option is available:
|
||||||
.Bl -tag -width flag
|
.Bl -tag -width flag
|
||||||
.It Fl n
|
.It Fl n
|
||||||
Do not print the trailing newline character. This may also be
|
Do not print the trailing newline character.
|
||||||
achieved by appending
|
This may also be achieved by appending
|
||||||
.Ql \ec
|
.Ql \ec
|
||||||
to the end of the string, as is done
|
to the end of the string, as is done
|
||||||
by iBCS2 compatible systems.
|
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
|
.El
|
||||||
.Pp
|
.Pp
|
||||||
Some shells may provide a builtin
|
Some shells may provide a builtin
|
||||||
|
Loading…
Reference in New Issue
Block a user