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

Re: globbing for links in pathnames



Typing away merrily, Bart Schaefer produced the immortal words:
> D'oh!  I was distracted by attempting to get globbing to happen in the
> right-side of ${x::=*(@)}, discovered that glob_assign wouldn't do it,
> and then just left it there and typed the other solution.

Okay, why do neither the second nor third ones here work "as expected"?

% print -l ${(A)~x::=pkgs/*(@)}given that:
pkgs/bar
pkgs/foo
% print -l ${(A)^~x::=pkgs/*(@)}/man 
pkgs/*(@)/man
% print -l ${^${(A)~x::=pkgs/*(@)}}/man
pkgs/*(@)/man
% 

I'm a little confused.
-- 
--> Phil Pennock ; GAT d- s+:+ a23 C++(++++) UL++++/I+++/S+++/B++/H+$ P++@$
L+++ E-@ W(+) N>++ o !K w--- O>+ M V !PS PE Y+ PGP+ t-- 5++ X+ R !tv b++>+++
DI+ D+ G+ e+ h* r y?



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