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

Re: print -z (Re: PATCH: printf builtin)



Bart Schaefer wrote:
>     -z
>           Push the arguments onto the editing buffer stack, separated
>           by spaces; no escape sequences are recognized.
>                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
> The above is correct for zsh 2.4, but not for zsh 3.0 or later.  I'm
> not sure exactly when it became wrong.  Does anyone remember whether
> the change in behavior was intentional (and the doc simply forgotten),
> or was this an accident and we should repair it to match the doc?

I'm not aware of any intentional change like that.

Arguably it's useful, since you can use print -zr in this case whereas
there's no way of doing the opposite.  But for most people it's probably
confusing.

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK                          Tel: +44 (0)1223 392070


**********************************************************************
The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential 
and/or privileged material. 
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by 
persons or entities other than the intended recipient is 
prohibited.  
If you received this in error, please contact the sender and 
delete the material from any computer.
**********************************************************************



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