From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7778 invoked by alias); 3 Dec 2015 16:00:13 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21035 Received: (qmail 24712 invoked from network); 3 Dec 2015 16:00:10 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:to:subject:mime-version :content-type; bh=Gipn4XCA9Qz5oUwchmyAZKGuQt1H301sQjSwniXs44U=; b=JZTOLT7QPix/LGTt5aL0jR2fm9g8ooxMj68TTd9WtpgRNB0hN3rbtXqYqnLMfSm21t 3VBKMAUIMiCgyaWQ4+Pv0lNkAJwtiJnfSEy/wIJibiAnLRA3oRZVxknPBjSWv1oXP2bH TvsQTWZ/pIAUEEmL+q0O0nup1zVgHZayP68LO1A8zzNyQTMQhxeFRlHprsLrmcrmE0xr ZqN44p7+3TIlTdDZ3gwxNnpUU8AxJmC+r8ENDxYrF4KwCcwO9YI975XNIDzuV2R84z0F V5NOk4Fo31BsqL4QWNRcfFzVFQT2QMFx4RsAP0HktGGAQA7kesSHtw2WCUDKYhTyg4ZW GM0Q== X-Gm-Message-State: ALoCoQm+v4R/UxDudV/tXT1rqDGWdRLnEmNP5vRiE8pPO+/62sHo8BlqTb+RWfNn7Ua+jvaz65Hh X-Received: by 10.66.237.7 with SMTP id uy7mr14398004pac.130.1449158408568; Thu, 03 Dec 2015 08:00:08 -0800 (PST) From: Bart Schaefer Message-Id: <151203080008.ZM11091@torch.brasslantern.com> Date: Thu, 3 Dec 2015 08:00:08 -0800 X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Mapping split ${(s::)...} across an array MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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?).