1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-29 05:21:00 +01:00

28578: fix handling of numeric escapes that expand to "%" in printf

format strings, so they are not treated as format introducers.
This commit is contained in:
Bart Schaefer 2011-01-06 16:49:25 +00:00
parent dd0ad1ac23
commit 87d6527628
4 changed files with 19 additions and 8 deletions

View file

@ -105,10 +105,9 @@
0:numeric value of high numbered character
>f0
# code will probably be changed to print the literal `%s' in this case
printf '\x25s\n' arg
0:using \x25 to introduce a format specifier
>arg
0:using \x25 to print a literal % in format
>%s
printf '%3c\n' c
0:width specified in format specifier