zsh-users
 help / color / mirror / code / Atom feed
* split with a variable?
@ 2006-03-30 14:17 Marc Chantreux
  0 siblings, 0 replies; only message in thread
From: Marc Chantreux @ 2006-03-30 14:17 UTC (permalink / raw)
  To: zsh-users

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-03-30 14:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-30 14:17 split with a variable? Marc Chantreux

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).