From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21569 invoked from network); 3 May 2000 15:07:05 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 3 May 2000 15:07:05 -0000 Received: (qmail 16132 invoked by alias); 3 May 2000 15:06:58 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11126 Received: (qmail 16118 invoked from network); 3 May 2000 15:06:57 -0000 Date: Wed, 03 May 2000 16:06:29 +0100 From: Peter Stephenson Subject: Re: PATCH: Re: Shell-word splitting (was: Re: Proposed _history completer) In-reply-to: "Your message of Wed, 03 May 2000 15:03:55 +0200." <200005031303.PAA02427@beta.informatik.hu-berlin.de> To: zsh-workers@sunsite.auc.dk (Zsh hackers list) Message-id: <0FTZ00L7QOMSNF@la-la.cambridgesiliconradio.com> Content-transfer-encoding: 7BIT > Index: Doc/Zsh/expn.yo > +Note that this is done very lately, as for the `tt((s))' flag. So to > +access single words in the result, one has to use nested expansions as > +in `tt(${${(z)foo}[2]}'. Index: Doc/Zsh/expn.yo =================================================================== RCS file: /cvsroot/zsh/zsh/Doc/Zsh/expn.yo,v retrieving revision 1.9 diff -u -r1.9 expn.yo --- Doc/Zsh/expn.yo 2000/05/03 13:05:40 1.9 +++ Doc/Zsh/expn.yo 2000/05/03 15:05:06 @@ -680,9 +680,9 @@ Split the result of the expansion into words using shell parsing to find the words, i.e. taking into account any quoting in the value. -Note that this is done very lately, as for the `tt((s))' flag. So to +Note that this is done very late, as for the `tt((s))' flag. So to access single words in the result, one has to use nested expansions as -in `tt(${${(z)foo}[2]}'. Likewise, to remove the quotes in the +in `tt(${${(z)foo}[2]})'. Likewise, to remove the quotes in the resulting words one would do: `tt(${(Q)${(z)foo}})'. ) item(tt(t))( -- Peter Stephenson Cambridge Silicon Radio, Unit 300, Science Park, Milton Road, Cambridge, CB4 0XL, UK Tel: +44 (0)1223 392070