From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25826 invoked from network); 5 Sep 2005 17:23:41 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 5 Sep 2005 17:23:41 -0000 Received: (qmail 85542 invoked from network); 5 Sep 2005 17:23:33 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 5 Sep 2005 17:23:33 -0000 Received: (qmail 23722 invoked by alias); 5 Sep 2005 17:23:26 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9387 Received: (qmail 23712 invoked from network); 5 Sep 2005 17:23:26 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 5 Sep 2005 17:23:26 -0000 Received: (qmail 84485 invoked from network); 5 Sep 2005 17:23:26 -0000 Received: from flock1.newmail.ru (212.48.140.157) by a.mx.sunsite.dk with SMTP; 5 Sep 2005 17:23:22 -0000 Received: (qmail 2227 invoked from network); 5 Sep 2005 17:14:05 -0000 Received: from unknown (HELO ?10.0.0.50?) (arvidjaar@newmail.ru@83.237.61.55) by smtpd.newmail.ru with SMTP; 5 Sep 2005 17:14:05 -0000 From: Andrey Borzenkov To: zsh-users@sunsite.dk Subject: Re: Problem with glob qualifier e Date: Mon, 5 Sep 2005 21:22:56 +0400 User-Agent: KMail/1.8.2 Cc: Hannu Koivisto References: <87u0gza316.fsf@trews52.bothi.fi> In-Reply-To: <87u0gza316.fsf@trews52.bothi.fi> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1834994.BdLjIkyrQR"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200509052123.08360.arvidjaar@newmail.ru> X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.4 --nextPart1834994.BdLjIkyrQR Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Monday 05 September 2005 20:32, Hannu Koivisto wrote: [...] > echo (sur|pur)(e:'':) > > which, when expanded, should result to > > echo pur -foo bar sur -foo bar > > I expected > > echo (sur|pur)(e:'reply=3D(${REPLY} -foo bar)':) > > to do what I want but instead that results to > > echo -foo -foo bar bar pur sur > > I can't see how that follows from the quoted documentation. =20 List is sorted after all matches are added; meaning that anything you have= =20 added is reordred. Hmm ... adding qualifier that prevents sorting is=20 relatively simple actually ... > In any=20 > case, if my goal cannot be achieved with the glob qualifier e, is > there some other brief trick to modify the list of generated > filenames in such a way? print -l sur pur | xargs -i /bin/echo '{}' -foo bar (I do not know why xargs here won't process arguments seperated by spaces, = it=20 should) =2Dandrey --nextPart1834994.BdLjIkyrQR Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQBDHH77R6LMutpd94wRAkzdAJ9CCAgzoeyAUfFanS3OPXG6+FvhEACgnDTO dQPSok47iOziPyz1st3c2Mw= =vxtq -----END PGP SIGNATURE----- --nextPart1834994.BdLjIkyrQR--