zsh-users
 help / color / mirror / code / Atom feed
From: DervishD <raul@pleyades.net>
To: "David Gómez" <david@pleyades.net>
Cc: Zsh-users <zsh-users@sunsite.dk>
Subject: Re: Question about extended globbing
Date: Sun, 23 Nov 2003 01:22:02 +0100	[thread overview]
Message-ID: <20031123002202.GA237@DervishD> (raw)
In-Reply-To: <20031122235540.GA21492@fargo>

    Hi David :)

 * Davilín <david@pleyades.net> 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/


  reply	other threads:[~2003-11-23  0:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-22 23:55 David Gómez
2003-11-23  0:22 ` DervishD [this message]
2003-11-23  9:09   ` David Gómez
2003-11-23 10:10     ` DervishD
2003-11-24 16:03       ` David Gómez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031123002202.GA237@DervishD \
    --to=raul@pleyades.net \
    --cc=david@pleyades.net \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).