summaryrefslogtreecommitdiffstats
path: root/usr.bin/printf
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2010-09-09 19:27:40 +0000
committerobrien <obrien@FreeBSD.org>2010-09-09 19:27:40 +0000
commitaf3323bd63c6c570cdc47e06d7aa93fb366241fc (patch)
tree7e9d340877c8dbcd54851bb1b78cd4207d749021 /usr.bin/printf
parent18f75881f89be44207befb312f5d2186a126cfaa (diff)
downloadFreeBSD-src-af3323bd63c6c570cdc47e06d7aa93fb366241fc.zip
FreeBSD-src-af3323bd63c6c570cdc47e06d7aa93fb366241fc.tar.gz
Note bug in trying to printf(1) things like: '-%s\n' "foo"
Diffstat (limited to 'usr.bin/printf')
-rw-r--r--usr.bin/printf/printf.17
1 files changed, 7 insertions, 0 deletions
diff --git a/usr.bin/printf/printf.1 b/usr.bin/printf/printf.1
index f0fc00b..6caea65 100644
--- a/usr.bin/printf/printf.1
+++ b/usr.bin/printf/printf.1
@@ -355,3 +355,10 @@ Multibyte characters are not recognized in format strings (this is only
a problem if
.Ql %
can appear inside a multibyte character).
+.Pp
+Trying to print a dash ("-") as the first character causes
+.Nm
+to interpet the dash as a program argument.
+.Nm --
+must be used before
+.Ar format .
OpenPOWER on IntegriCloud