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

Re: Minor expansion problem



Bart Schaefer wrote:
> Expanding $(...) doesn't put
> in backslashes, but expanding `...` does.  This appears to be happening
> because the ${(e)exp} at _expand line 83 returns one word for `...` but
> an array for $(...).

Yes, it's completely reproducible just with ${(e)exp}.

> } but what I expect, i.e. no backslashes, with the _expand_word widget?
> 
> Hrm, I get backslashes in both cases.  Are you sure you're using the
> _expand_word widget (^Xe) and not the builtin expand-word (^X*) ?

You're right, I was using expand-word, which is not rebound by the
completion system.

-- 
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