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

Re: Why does this extended glob pattern fail?



On Wed, 27 Jul 2011 15:32 +0100, "Stephane Chazelas"
<stephane.chazelas@xxxxxxxxx> wrote:
> or better, use globbing alternate operator rather than brace
> expansion:
> 
> cp ^$from/*.(log|png) $dest

Actually, this does not work either. Instead, I have to write

  cp $from/^*.(log|png) $dest

The reason is that ^ doesn't apply to the *whole* word, but only up to
the first '/'.

Thanks for helping!

Ronald

-- 
Ronald Fischer <ronaldf@xxxxxx>
+  If a packet hits a pocket on a socket on a port, 
+  and the bus is interrupted and the interrupt's not caught,
+  then the socket packet pocket has an error to report.
+		(cited after Peter van der Linden)



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