mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
Allow multiple slashes in a wildcard to be used as a single directory separator
darcs-hash:20060221154738-ac50b-e4b35d3604d8e39d3aff7b8da38617272bd6e89e.gz
This commit is contained in:
parent
328c3a39a1
commit
a4a025b786
1 changed files with 9 additions and 1 deletions
10
wildcard.c
10
wildcard.c
|
@ -657,7 +657,15 @@ int wildcard_expand( const wchar_t *wc,
|
|||
*/
|
||||
if( whole_match )
|
||||
{
|
||||
res |= wildcard_expand( wc_end?wc_end + 1:L"",
|
||||
wchar_t *new_wc = L"";
|
||||
if( wc_end )
|
||||
{
|
||||
new_wc=wc_end+1;
|
||||
while(*new_wc==L'/')
|
||||
new_wc++;
|
||||
}
|
||||
|
||||
res |= wildcard_expand( new_wc,
|
||||
new_dir,
|
||||
flags,
|
||||
out );
|
||||
|
|
Loading…
Reference in a new issue