[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: globstar syntax
From: |
Stephane CHAZELAS |
Subject: |
Re: globstar syntax |
Date: |
Thu, 22 Jan 2009 20:32:03 +0000 (UTC) |
User-agent: |
slrn/pre1.0.0-2 (Linux) |
2009-01-21, 22:49(-05), Chet Ramey:
> Stephane CHAZELAS wrote:
>
>> Apparently, just like ksh93, bash4 only implements ** and not ***
>> nor the globbing qualifiers, but like zsh it requires **/*.c
>> (**.c won't work).
>
> I'm not sure what version of ksh93 you're using, but the latest version
> I have (t+ 2008-11-11) requires **/*.c as well.
[...]
Sorry, I've had it wrong, bad memory.
In zsh, it's **/ that is a shortcut for (*/)# obiously otherwise
(if ** were short for (*/)#) **.c would match any file named
".c" in any subdirectory, and ** alone is not special.
In ksh93, ** matches any file in any directory and subdirectory,
while you need **/* in bash or zsh (**/* will also work in ksh).
--
Stéphane