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

KSH_TYPESET



Peter Stephenson wrote:
> Here's an attempt.  The KSH_TYPESET option prevents wordsplitting if it
> finds an `=' in the pre-expansion text for typeset etc.  It doesn't force
> other typeset arguments not to be split, for example
> 
>   foo=(param1 param2)
>   typeset $foo
> 
> clearly shouldn't inhibit wordsplitting.
> 
> I've made the MAGIC_EQUAL_SUBST behaviour follow the same behaviour that
> would be used after typeset, i.e. respecting KSH_TYPESET.  This seems to be
> the natural way to do it.

Use of KSH_TYPESET together with MAGIC_EQUAL_SUBST completely breaks word
splitting with "$foo[@]".  I haven't the smallest clue how yet.  This will
stop the completion system working.

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR Ltd., Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, 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