From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15020 invoked by alias); 16 Nov 2012 22:03:20 -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: 17399 Received: (qmail 21419 invoked from network); 16 Nov 2012 22:03:08 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at mugenguild.com does not designate permitted sender hosts) Date: Fri, 16 Nov 2012 22:55:58 +0100 From: Valodim Skywalker To: Oliver Kiddle Cc: Matthias Vallentin , zsh-users@zsh.org Subject: Re: Applying glob qualifiers to non-variable types Message-ID: <20121116215558.GA30854@mugenguild.com> Mail-Followup-To: Oliver Kiddle , Matthias Vallentin , zsh-users@zsh.org References: <20121116180016.GJ24247@icir.org> <6033.1353095715@thecus.kiddle.eu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YiEDa0DAkWCtVeE4" Content-Disposition: inline In-Reply-To: <6033.1353095715@thecus.kiddle.eu> User-Agent: Mutt/1.5.21 (2011-07-01) --YiEDa0DAkWCtVeE4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline You can actually apply these kinds of operations to arrays, ie: # read into array, linewise files=( ${(f)"$(command)"} ) # use :t and :r on array - those apply per element print -l ${files:t:r} - V --YiEDa0DAkWCtVeE4 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlCmtm4ACgkQxCa+aHUWYdRLWACg0Jn/ykvk3mHHbQvp7Bdt2KUw iOwAoLfXj0LFTTuzkPqJnIs9STFhRbK4 =Fb6Z -----END PGP SIGNATURE----- --YiEDa0DAkWCtVeE4--