Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
split with a variable?
- X-seq: zsh-users 10113
- From: Marc Chantreux <marc.chantreux@xxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: split with a variable?
- Date: Thu, 30 Mar 2006 16:17:37 +0200
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
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