From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 998 invoked from network); 12 Jun 2001 17:17:16 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 12 Jun 2001 17:17:16 -0000 Received: (qmail 2634 invoked by alias); 12 Jun 2001 17:16:38 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 14866 Received: (qmail 2607 invoked from network); 12 Jun 2001 17:16:36 -0000 Message-ID: To: zsh-workers@sunsite.dk (Zsh hackers list) Subject: KSH_TYPESET In-reply-to: "Peter Stephenson"'s message of "Tue, 12 Jun 2001 11:25:42 BST." Date: Tue, 12 Jun 2001 18:16:29 +0100 From: Peter Stephenson 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 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. **********************************************************************