From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16945 invoked from network); 23 Nov 2003 00:22:24 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 23 Nov 2003 00:22:24 -0000 Received: (qmail 17201 invoked by alias); 23 Nov 2003 00:22:09 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6807 Received: (qmail 17132 invoked from network); 23 Nov 2003 00:22:09 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 23 Nov 2003 00:22:09 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [62.193.203.32] by sunsite.dk (MessageWall 1.0.8) with SMTP; 23 Nov 2003 0:22:9 -0000 Received: from DervishD.pleyades.net (212.Red-80-35-44.pooles.rima-tde.net [80.35.44.212]) by madrid10.amenworld.com (8.10.2/8.10.2) with ESMTP id hAN0M8M02691; Sun, 23 Nov 2003 01:22:08 +0100 Received: from raul@pleyades.net by DervishD.pleyades.net with local (Exim MTA 2.05) id <1ANi0o-00004C-00>; Sun, 23 Nov 2003 01:22:02 +0100 Date: Sun, 23 Nov 2003 01:22:02 +0100 From: DervishD To: David =?iso-8859-1?Q?G=F3mez?= Cc: Zsh-users Subject: Re: Question about extended globbing Message-ID: <20031123002202.GA237@DervishD> Mail-Followup-To: David =?iso-8859-1?Q?G=F3mez?= , Zsh-users References: <20031122235540.GA21492@fargo> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20031122235540.GA21492@fargo> User-Agent: Mutt/1.4i Organization: Pleyades User-Agent: Mutt/1.4i Hi David :) * Davilín dixit: > grep something $FOO/^{*txt,*info} > > but it didn't work. How can I achieve to include several alternatives with > the ^ operator? Like this: grep something $FOO/^(*txt|*info) I may be wrong, of course, but I think that the braces you are using are took literally in the pattern, or they are used just for brace expansion, generating something like: grep something $FOO/^*txt $FOO/^*info That way, when filename generation takes place, it expands the first expression, which include any *info file, and then it expands the second expression, which contains any *txt file. I think we are in the second case, brace expansion and after that filename generation. See if you have dupes in the generated file list (use 'print' instead of grep. I've done and I have two lists, the first doesn't include any *txt file, the second doesn't include any *info file). Raúl Núñez de Arenas Coronado -- Linux Registered User 88736 http://www.pleyades.net & http://raul.pleyades.net/