Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Recursive globbing with (*/)#
On Mon, 16 May 2011, Omari Norman wrote:
% touch bar
% print -l (*/)#bar
zsh: bad pattern: (*/)#bar
% print -l **/bar
bar
zshexpn under "Recursive Globbing" says that the (*/)#bar form should
be identical. Starting zsh with -f (maybe I had strange options?) had
no effect. This is zsh 4.3.10 on Debian. Ideas? Thanks. --Omari
% setopt extended_glob
It's required to make x# (zero or more x) special.
The other three things it activates:
^x = anything but x
x~y = x but not y
x## = one or more x
--
Best,
Ben
Messages sorted by:
Reverse Date,
Date,
Thread,
Author