zsh-workers
 help / color / mirror / code / Atom feed
From: Mark Borges <mdb@cdc.noaa.gov>
To: Ray_Van_Tassle-CRV004@email.mot.com
Cc: zsh-workers@math.gatech.edu
Subject: Re: Bug in filename expansion
Date: 21 Jun 1996 10:54:16 -0600	[thread overview]
Message-ID: <vkafxxxflz.fsf@cdc.noaa.gov> (raw)
In-Reply-To: Ray_Van_Tassle-CRV004@email.mot.com's message of 21 Jun 96 10:26:27 -0500

>> On 21 Jun 96 10:26:27 -0500,
>> Ray Van Tassle-CRV004(RVT) wrote:
>> use groupping.
>> 
>> zz^(a|b)yy is the same as zz^((a|b)yy) and zz(^(a|b))yy is what you want.
>> 
RVT> No, that doesn't work either.  Also, if my 1st attempt ("zz^(a|b)yy") is
RVT> incorrect, this is a surprise, and it should probably be mentioned in the
RVT> documentation.

This is one of those "only works with extendedglob set"
things. Perhaps the manual should be clearer, if it isn't (I haven't
had time to check carefully yet).

  $ ~/bin/sunos-5.5/zsh-2.6b21 -f
  % touch zz{a,b,x}yy
  % ls
  zzayy  zzbyy  zzxyy
  % echo zz(a|b)yy
  zzayy zzbyy
  % echo zz^(a|b)yy
  zsh: no matches found: zz^(a|b)yy
  % setopt extendedglob
  % echo zz^(a|b)yy
  zzxyy
  % echo zz^((a|b))yy
  zzxyy
  % echo $ZSH_VERSION
  2.6-beta21
  %

-- 
  -mb-



  reply	other threads:[~1996-06-21 17:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-06-21 15:26 Ray_Van_Tassle-CRV004
1996-06-21 16:54 ` Mark Borges [this message]
  -- strict thread matches above, loose matches on Subject: below --
1996-06-20 15:29 Ray Van_Tassle
1996-06-20 20:48 ` Zoltan Hidvegi

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=vkafxxxflz.fsf@cdc.noaa.gov \
    --to=mdb@cdc.noaa.gov \
    --cc=Ray_Van_Tassle-CRV004@email.mot.com \
    --cc=zsh-workers@math.gatech.edu \
    /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).