From: Ray_Van_Tassle-CRV004@email.mot.com
To: hzoli@cs.elte.hu (Receipt Notification Requested),
rayvt@dd201.comm.mot.com (Receipt Notification Requested)
Cc: zsh-workers@math.gatech.edu (Receipt Notification Requested)
Subject: RE: Bug in filename expansion
Date: 21 Jun 96 10:26:27 -0500 [thread overview]
Message-ID: <"Macintosh */PRMD=MOT/ADMD=MOT/C=US/"@MHS> (raw)
[[ example deleted ]]
> No, it isn't wrong. ^pattern matches if pattern does not match. You
should
> use groupping.
>
> zz^(a|b)yy is the same as zz^((a|b)yy) and zz(^(a|b))yy is what you want.
>
> Zoltan
>
No, that doesn't work either. Also, if my 1st attempt ("zz^(a|b)yy") is
incorrect, this is a surprise, and it should probably be mentioned in the
documentation. Or maybe the precedence of "^" changed ?
If there isn't a bug here (and I think there is), then we need some
further examples of "how to do it".
Also.... how can I do a parenthisised group at the *end* of a pattern? It
thinks that this is a "list of qualifiers".
Here's my trial script & output:
setopt verbose
touch zzayy
touch zzbyy
touch zzxyy
ls zz*
zzayy
zzbyy
zzxyy
#next works--shows a & b
ls zz(a|b)yy
zzayy
zzbyy
#next doesn't work--should show x
ls zz^(a|b)yy
./try: no match [9]
# zoltan says the above means the same as next
ls zz(^(a|b)yy)
./try: no match [11]
# zoltan says this will show x. but it doesn't
ls zz(^(a|b))yy
./try: no match [13]
unsetopt verbose
next reply other threads:[~1996-06-21 16:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-06-21 15:26 Ray_Van_Tassle-CRV004 [this message]
1996-06-21 16:54 ` Mark Borges
-- 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='"Macintosh */PRMD=MOT/ADMD=MOT/C=US/"@MHS' \
--to=ray_van_tassle-crv004@email.mot.com \
--cc=hzoli@cs.elte.hu \
--cc=rayvt@dd201.comm.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).