Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
(s) splitting – is there any way to provide «dynamic» separator
- X-seq: zsh-workers 33400
- From: Vasiliy Ivanov <beelzebubbie.logs@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: (s) splitting – is there any way to provide «dynamic» separator
- Date: Thu, 09 Oct 2014 21:00:32 +0600
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=c3dHXavezkgiLkX5059XhZTQ788b6SEc68F/ajOxY1U=; b=R2yWgubJVSIegftQTPYzY0LHs82P3gQ9R5ZWY1oLcusK8KcONqVoqt0Hb1NJWf6gaE V1jSN1BJhjc8GJhsQqY20id63SnPTm11xcUUJfsHQNK7dLlc5GMlxjzLKq+15sVaBQn1 p5r8SoBhaLH6QIZCSmoTuVl2r7FFZBy0FtaD7GLdZ8OqFxBfyii6IVjSWTpU3G47s1HA a5NjsNN8RmyrA+sxJQFEGp3FUOlOgdycOZVqVLRPanHikSs70Rda2aXROu+0+m6wN2sN WQJRF7MHkJeYgL9HF5FrseOiw1bUHRkYGnL5kolvg1KidSTGWENPCLrFZ1wcds4A8RyW JgCg==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hi,
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}).
I think this is because expansion/substitution are not available in flags? If so, is there any
another way for such a «dynamic» splitting?
--
Regards,
Vasiliy Ivanov <beelzebubbie.logs@xxxxxxxxx>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author