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

strange glob expansion



Hi,

I tried something like this :

% echo .scwm/(chan*|**/scwmrc*) 
.scwm/0.9 .scwm/0.99.1-cvs .scwm/0.99.2 .scwm/change-scwmrc .scwm/sav .scwm/scratch

But I expected that :

.scwm/0.9/scwmrc .scwm/0.99.1-cvs/scwmrc .scwm/0.99.1-cvs/scwmrc.debug .scwm/0.99.2/scwmrc .scwm/change-scwmrc .scwm/sav/scwmrc .scwm/sav/scwmrc.sav .scwm/scratch/scwmrc-scratch

Because :

% echo .scwm/**/scwmrc*  
.scwm/0.9/scwmrc .scwm/0.99.1-cvs/scwmrc .scwm/0.99.1-cvs/scwmrc.debug .scwm/0.99.2/scwmrc .scwm/sav/scwmrc .scwm/sav/scwmrc.sav .scwm/scratch/scwmrc-scratch

What's wrong ? Did I misunderstand something ?

This one is strange too :

% echo (.scwm/**/scwmrc*|.scwm/chan*)
.scwm



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