Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: printf %s in UTF-8 is not POSIX-compliant



On 2008-03-04 17:34:13 -0800, Bart Schaefer wrote:
> On Mar 5,  1:27am, Vincent Lefevre wrote:
> } Subject: Re: printf %s in UTF-8 is not POSIX-compliant
> }
> } > printf() { emulate -L zsh; unsetopt multibyte; builtin printf "$@" }
> } 
> } There's a missing semi-colon:
> 
> No, there isn't.  Zsh doesn't require it, even though bash and ksh do.

Zsh does require it too:

vin:~> zsh -f
vin% emulate sh
vin% printf() { emulate -L zsh; unsetopt multibyte; builtin printf "$@" }
function>

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)



Messages sorted by: Reverse Date, Date, Thread, Author