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

Re: PATCH: updated _zstyle and cleanup of related stuff



"Bart Schaefer" wrote:
> Hm.  Where, exactly, would it not be treated as one?  You mean that, at
> least for now, you won't implement my `*(#qG)/*(#q.^G)' example?

Yes.  That's difficult.

> } i.e. gets through to the pattern code, since it means you no longer need to
> } rewrite glob patterns to test against the filenames, which I consider a
> } highly desirable feature.
> 
> I'm not sure I follow that.

  filetest='(#b)(*).c(#q.)'
  files=(${~filetest})
  for f in $files; do
    if [[ $f != ${~filetest} ]]; then
      print "This is what happens otherwise."
    fi
    basename=$match[1]
    # ... stuff ...
  done

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK                          Tel: +44 (0)1223 392070


**********************************************************************
The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential 
and/or privileged material. 
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by 
persons or entities other than the intended recipient is 
prohibited.  
If you received this in error, please contact the sender and 
delete the material from any computer.
**********************************************************************



Messages sorted by: Reverse Date, Date, Thread, Author