Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug in filename expansion



>> 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