zsh-users
 help / color / mirror / code / Atom feed
* /usr/bin/printf
@ 2009-02-13  1:41 Matthew Flaschen
  2009-02-13  1:51 ` /usr/bin/printf Mikael Magnusson
  0 siblings, 1 reply; 12+ messages in thread
From: Matthew Flaschen @ 2009-02-13  1:41 UTC (permalink / raw)
  To: zsh-users

zsh (zsh 4.3.4 (i686-pc-linux-gnu)) seems to use (probably for
optimization) its built-in printf even if you explicitly specify
/usr/bin/printf .  Of course, this is only coming up because zsh's
printf seems to be wrong (or it least doesn't match the executable it's
mimicking)

Under bash:

$ printf "%s\n" foo
foo

Under dash (or bash):

$ /usr/bin/printf "%s\n" foo
foo

Under zsh:

% printf "%s\n" foo

" foofoo

/usr/bin/printf "%s\n" foo

" foofoo

zsh's printf does some really bizarre things:

% /usr/bin/printf "%s" > /dev/null
" > /dev/null

It actually prints the text /dev/null !

Under bash:

$ /usr/bin/printf "%s" > /dev/null
$

Is this a known issue?

Matt Flaschen


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2009-02-13 10:46 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-13  1:41 /usr/bin/printf Matthew Flaschen
2009-02-13  1:51 ` /usr/bin/printf Mikael Magnusson
2009-02-13  3:04   ` /usr/bin/printf Matthew Flaschen
2009-02-13  3:25     ` /usr/bin/printf Bart Schaefer
2009-02-13  3:40       ` /usr/bin/printf Nikolai Weibull
2009-02-13  4:12         ` /usr/bin/printf Bart Schaefer
2009-02-13  4:13         ` /usr/bin/printf Matthew Flaschen
2009-02-13  4:21           ` /usr/bin/printf Andrey Borzenkov
2009-02-13 10:40           ` /usr/bin/printf Mikael Magnusson
2009-02-13 10:45             ` /usr/bin/printf Mikael Magnusson
2009-02-13  4:09       ` /usr/bin/printf Matthew Flaschen
2009-02-13  8:20     ` /usr/bin/printf Dan Nelson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).