diff options
author | obrien <obrien@FreeBSD.org> | 2010-09-09 19:27:40 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2010-09-09 19:27:40 +0000 |
commit | af3323bd63c6c570cdc47e06d7aa93fb366241fc (patch) | |
tree | 7e9d340877c8dbcd54851bb1b78cd4207d749021 /usr.bin/printf | |
parent | 18f75881f89be44207befb312f5d2186a126cfaa (diff) | |
download | FreeBSD-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.1 | 7 |
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 . |