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

split with a variable?



Hi all,

is there a way to split a variable with another one and without using eval ? exemple :

% x=p,o,u
% e=,
% eval "print -l \${(s:$e:)x}"
p
o
u

% print -l ${(s:$~e:)x}
p,o,u

% print -l ${(s:$e:)x}
p,o,u

regards,
mc



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