Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bug in printf(1)?
On Sun, 10 Apr 2011, Thomas Klausner wrote:
# printf "\x25"
printf: %: invalid directive
I would have expected a plain '%' instead...
Bug?
I think you are not seeing printf(1) behavior, but rather a built-in for
your shell.
On my -current from January 17th, I get what you expected:
{258} /usr/bin/printf "\x25"
%{259}
It also works just fine in /bin/sh
{260} /bin/sh
# printf "\x25"
%#
and in /bin/csh
{262} /bin/csh
{100} printf "\x25"
%{101}
-------------------------------------------------------------------------
| Paul Goyette | PGP Key fingerprint: | E-mail addresses: |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer | | pgoyette at netbsd.org |
-------------------------------------------------------------------------
Home |
Main Index |
Thread Index |
Old Index