From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id de1c6aeb for ; Wed, 17 Apr 2019 02:11:05 +0000 (UTC) Received: (qmail 23622 invoked by alias); 17 Apr 2019 02:10:46 -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: List-Unsubscribe: X-Seq: 23933 Received: (qmail 21471 invoked by uid 1010); 17 Apr 2019 02:10:46 -0000 X-Qmail-Scanner-Diagnostics: from out4-smtp.messagingengine.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.1/25419. spamassassin: 3.4.2. Clear:RC:0(66.111.4.28):SA:0(-2.7/5.0):. Processed in 0.77741 secs); 17 Apr 2019 02:10:46 -0000 X-Envelope-From: anthony@ajrh.net X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at spf.messagingengine.com designates 66.111.4.28 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ajrh.net; h= mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type; s=mesmtp; bh=syBpAAb0951b4YmjSw7I+GzMCZb+ CLBQLo0Z+GPV8PQ=; b=bxq1JzBs3Lwzzq8z2sq5kW1I0OKcIPmA/FpmCn9XSZen kMN8QdFSEwmmvo3k0D30gq8zcjKfpBB6AKZOPXuzKuQwBlVsaP+ClF+xjgcuG3z4 VlQ+a32lSmzI87qInDnCN6sDUX7gHHdnvGf2xXsbn8D6fNgdas+ybkRLPD2eAKo= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=syBpAA b0951b4YmjSw7I+GzMCZb+CLBQLo0Z+GPV8PQ=; b=rqTCz+3LsaBoBnqzGSq08U RVqtsFTU56cRrS8nE+o6ZH29jjqk6In0zqikmfP/hcf0bbGQQl9LIlJtcWbkBxYz 2ledOKuuamOlYBnIT00O/72aYqtGkf+riQRSUpFJJFQLNb7WLB5n87BDIaLWyEXW 6N6EJAepguV5n4c10x4nlKyvTDwUnMDBZGqIYApwlGqqvaqc//X/lfh89rVraKQz HKjp+EzSrwwOI9HrgvaU8Q/qM+/J90Sg+eq0zyF4XHNeEv85upnTNuf+z4c1vKHI NUvrgjHqtbog7sX6sKFJQ1TDelkMlG87W5hqUlKpkcUJDoVimCy3NduaT7PsPMMg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrfedvgdehfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtsehttdertderredtnecuhfhrohhmpedftehnthhh ohhnhicujfgvrgguihhnghdfuceorghnthhhohhnhiesrghjrhhhrdhnvghtqeenucfrrg hrrghmpehmrghilhhfrhhomheprghnthhhohhnhiesrghjrhhhrdhnvghtnecuvehluhhs thgvrhfuihiivgeptd X-ME-Proxy: X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.6-443-g918f9d3-fmstable-20190416v3 Mime-Version: 1.0 X-Me-Personality: 3816747 Message-Id: <7f350a86-802f-42b3-bac5-9c28197d197a@www.fastmail.com> In-Reply-To: <20190414084632.t4gdc2fjswogznxy@gmx.de> References: <20190414084632.t4gdc2fjswogznxy@gmx.de> Date: Tue, 16 Apr 2019 22:09:54 -0400 From: "Anthony Heading" To: "Dominik Vogt" , "Zsh Users" Subject: Re: SImple way to execute command on list of files? Content-Type: text/plain On Tue, Apr 16, 2019, at 10:03 PM, Dominik Vogt wrote: > but is there a more general way where you can define a list of > commands to treat differently, say > > annoying_commands xpdf ps2pdf gv > something like this maybe? wrap_annoying_command() { local i; for i in $~2; $1 $i } annoying_commands() { local i; for i in $@; alias $i="noglob wrap_annoying_command $i" } annoying_commands xpdf ps2pdf gv