Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Mapping split ${(s::)...} across an array
- X-seq: zsh-users 21035
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Mapping split ${(s::)...} across an array
- Date: Thu, 3 Dec 2015 08:00:08 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:to:subject:mime-version:content-type; bh=Gipn4XCA9Qz5oUwchmyAZKGuQt1H301sQjSwniXs44U=; b=hS9ILnLDR+Crc8XKkNd8EG7nbSxrgL+/nKeAH3MGHLMVyJuuEUpQnyYKa1A5sQ3L78 UIzcsGxX90BzuTdJakyatcbpTk8OwqOr3gmzSBXqsXqWbk4OwTWLJCcdCYcIH7kt3JWN ID7fgqalht25TFLYHL6HzBeDigHySmUs2X5Tn6/2m8XVS73/TYVkUJObbYdGw4wNkNas qhAE8KFbrDPNJoOuvnI83B1k5nOaFx5Rh93lKSOzflRCylWm1y2ukoJOwLfM4BWqW4ag w7lPGyhTrmBcMz7e3ceSipkrLL+Gxor4dyfi7zWjHpdZI7AmBF8MsuvrIK62EO0h/aJP t6LQ==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
I recently had a situation where I wanted to create a new array by splitting
every element of an existing array. The only solution I came up with was
to first join the original array into a string using the same character I
wanted to use to split the individual elements.
Is there another way? :s// and similar replacements are mapped across an
array by definition, but that doesn't help (does it?).
Messages sorted by:
Reverse Date,
Date,
Thread,
Author