Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
KSH_TYPESET
- X-seq: zsh-workers 14866
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx (Zsh hackers list)
- Subject: KSH_TYPESET
- Date: Tue, 12 Jun 2001 18:16:29 +0100
- In-reply-to: "Peter Stephenson"'s message of "Tue, 12 Jun 2001 11:25:42 BST." <Tc0a88d015418d1118f@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
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