* Recursive globbing with (*/)#
@ 2011-05-17 2:37 Omari Norman
2011-05-17 3:21 ` Benjamin R. Haskell
0 siblings, 1 reply; 2+ messages in thread
From: Omari Norman @ 2011-05-17 2:37 UTC (permalink / raw)
To: zsh-users
% 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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Recursive globbing with (*/)#
2011-05-17 2:37 Recursive globbing with (*/)# Omari Norman
@ 2011-05-17 3:21 ` Benjamin R. Haskell
0 siblings, 0 replies; 2+ messages in thread
From: Benjamin R. Haskell @ 2011-05-17 3:21 UTC (permalink / raw)
To: Omari Norman; +Cc: zsh-users
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-05-17 3:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-17 2:37 Recursive globbing with (*/)# Omari Norman
2011-05-17 3:21 ` Benjamin R. Haskell
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).