Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug in filename expansion
- X-seq: zsh-workers 1415
- From: Mark Borges <mdb@xxxxxxxxxxxx>
- To: Ray_Van_Tassle-CRV004@xxxxxxxxxxxxx
- Subject: Re: Bug in filename expansion
- Date: 21 Jun 1996 10:54:16 -0600
- Cc: zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: Ray_Van_Tassle-CRV004@xxxxxxxxxxxxx's message of 21 Jun 96 10:26:27 -0500
- References: <"Macintosh */PRMD=MOT/ADMD=MOT/C=US/"@MHS>
- Sender: mdb@xxxxxxxxxxxx
>> 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-
Messages sorted by:
Reverse Date,
Date,
Thread,
Author