Add quotes around command substitution in the example
so that it works regardless of IFS and buts. Requested by kre@
This commit is contained in:
parent
44618758bb
commit
e78db94ba3
@ -1,4 +1,4 @@
|
|||||||
.\" $NetBSD: printf.1,v 1.34 2020/06/26 22:05:05 uwe Exp $
|
.\" $NetBSD: printf.1,v 1.35 2020/06/29 22:50:11 uwe Exp $
|
||||||
.\"
|
.\"
|
||||||
.\" Copyright (c) 1989, 1990, 1993
|
.\" Copyright (c) 1989, 1990, 1993
|
||||||
.\" The Regents of the University of California. All rights reserved.
|
.\" The Regents of the University of California. All rights reserved.
|
||||||
@ -473,4 +473,4 @@ invocation uses the octal string as part of a format.
|
|||||||
For example, the following command outputs the character whose code
|
For example, the following command outputs the character whose code
|
||||||
is 0x0a, which is a newline in ASCII:
|
is 0x0a, which is a newline in ASCII:
|
||||||
.Pp
|
.Pp
|
||||||
.Dl printf $(printf \(aq\e\e%o\(aq 0x0a)
|
.Dl printf \*q$(printf \(aq\e\e%o\(aq 0x0a)\*q
|
||||||
|
Loading…
Reference in New Issue
Block a user