Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: (s) splitting - is there any way to provid e "dynamic" separator
On Oct 9, 9:00pm, Vasiliy Ivanov wrote:
}
} Sorry if I (maybe) missed something obvious, but I failed to find a
} way to use separator from parameter
} (e.g. a='1:2:3'; sep=':'; print -l ${(s.$sep.)a}).
Something like this:
print -l ${(ps.\0.)a//$sep/$'\0'}
(Assuming there are no nul-bytes in the value of $a to begin with.)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author