From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13198 invoked by alias); 17 Nov 2014 20:32:02 -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: 19399 Received: (qmail 13202 invoked from network); 17 Nov 2014 20:32:01 -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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-Authority-Analysis: v=2.1 cv=AduIQRnG c=1 sm=1 tr=0 a=6Eia9ogllWoXNUe/jSXtcw==:117 a=6Eia9ogllWoXNUe/jSXtcw==:17 a=G8GL833Es-AA:10 a=N659UExz7-8A:10 a=mu5CSKTH3kGwYohy8wYA:9 a=pILNOxqGKmIA:10 a=qUYuVE0nDkYA:10 a=kAjp5Vnmd7cA:10 Message-id: <546A5B3E.3080104@eastlink.ca> Date: Mon, 17 Nov 2014 12:31:58 -0800 From: Ray Andrews User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.2.0 MIME-version: 1.0 To: zsh-users@zsh.org Subject: Re: xargs with functions References: <546A3D6A.4090609@eastlink.ca> <20141117184003.GH4048@sym.noone.org> In-reply-to: <20141117184003.GH4048@sym.noone.org> Content-type: text/plain; charset=windows-1252; format=flowed Content-transfer-encoding: 7bit On 11/17/2014 10:40 AM, Axel Beckert wrote: Axel, But zsh's zargs seems to support functions (but not aliases). Try this: % autoload -U zargs % zargs -- * -- l ,s Not too shabby! This worked: $zargs -- `ls -1` -- l ,s 'piped' output of 'ls -1' to my function 'l'. But this is what I've done previously: $l ,s `ls -1` ... which is more compact. Is there any reason to prefer zargs? Perhaps it can swallow more complex input?