From: Vasiliy Ivanov <beelzebubbie.logs@gmail.com>
To: zsh-workers@zsh.org
Subject: (s) splitting – is there any way to provide «dynamic» separator
Date: Thu, 09 Oct 2014 21:00:32 +0600 [thread overview]
Message-ID: <5436A310.7040101@gmail.com> (raw)
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@gmail.com>
next reply other threads:[~2014-10-09 15:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-09 15:00 Vasiliy Ivanov [this message]
2014-10-09 21:14 ` Peter Stephenson
2014-10-09 21:48 ` Mikael Magnusson
2014-10-10 18:26 ` Peter Stephenson
2014-10-13 10:30 ` Peter Stephenson
2014-10-10 1:45 ` (s) splitting - is there any way to provid e "dynamic" separator Bart Schaefer
2014-10-10 7:06 ` (s) splitting - is there any way to provide " Vasiliy Ivanov
2014-10-11 0:38 ` Han Pingtian
2014-10-11 3:31 ` Bart Schaefer
2014-10-11 11:52 ` Han Pingtian
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5436A310.7040101@gmail.com \
--to=beelzebubbie.logs@gmail.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).