Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/printf Add quotes around command substitution in the...
details: https://anonhg.NetBSD.org/src/rev/281a1ef4f5f9
branches: trunk
changeset: 935297:281a1ef4f5f9
user: uwe <uwe%NetBSD.org@localhost>
date: Mon Jun 29 22:50:11 2020 +0000
description:
Add quotes around command substitution in the example
so that it works regardless of IFS and buts.
Requested by kre@
diffstat:
usr.bin/printf/printf.1 | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (15 lines):
diff -r 2f6b8fdc125c -r 281a1ef4f5f9 usr.bin/printf/printf.1
--- a/usr.bin/printf/printf.1 Mon Jun 29 21:45:50 2020 +0000
+++ b/usr.bin/printf/printf.1 Mon Jun 29 22:50:11 2020 +0000
@@ -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
.\" The Regents of the University of California. All rights reserved.
@@ -473,4 +473,4 @@
For example, the following command outputs the character whose code
is 0x0a, which is a newline in ASCII:
.Pp
-.Dl printf $(printf \(aq\e\e%o\(aq 0x0a)
+.Dl printf \*q$(printf \(aq\e\e%o\(aq 0x0a)\*q
Home |
Main Index |
Thread Index |
Old Index