From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28143 invoked by alias); 11 Mar 2018 23:02:59 -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: 23233 Received: (qmail 15501 invoked by uid 1010); 11 Mar 2018 23:02:59 -0000 X-Qmail-Scanner-Diagnostics: from aurora-borealis.phear.org by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(94.242.205.164):SA:0(-1.9/5.0):. Processed in 2.457338 secs); 11 Mar 2018 23:02:59 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS, T_DKIM_INVALID,T_RP_MATCHES_RCVD autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: khatar@phear.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | X-Virus-Scanned: amavisd-new at phear.org DKIM-Filter: OpenDKIM Filter v2.10.3 aurora-borealis.phear.org A563B100C5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=phear.org; s=20180217; t=1520808805; bh=gi7jyzhBAnhrwIphBC7GVHx3ksgbeLeACin/4E6nuG0=; h=Date:From:To:Subject:References:In-Reply-To:From; b=SwIFf2YAIwnE/uMne3G0hhDF/6MTvSSj0YqYSzNIx8qDQxOXdVPK9buM78xIk1PmH mtNhMqgZP2lPH3CNF0t6Kw+b/BYDL8DWvC1rWFDD4qG0UyqNs7OOSHfdooEhorbaCh UqC31aZyg6g+h+mTPoToqs23au+z8lSig5ApfkSOi9abffjH906MJgneNWVqE0fSq6 nKPWE1lfRoBVBSNoJBc+jJ7eQRHuQK+IE0G9HZ8plJ54MhdaNb8JU9YKeCD4SGtlDG guowGlRGRmZQNXbKSG335SrcMygdxMvu1Vq1/DOGqh31DFmUtQoKuOzv9iV8kiFLQM 1qhtMwFztdYaA== Date: Sun, 11 Mar 2018 23:53:21 +0100 From: Marc Chantreux To: zsh-users@zsh.org Subject: Re: avoid eval? Message-ID: <20180311225321.shqrx7idd57ie62d@prometheus.u-strasbg.fr> References: <059f4f08-7f7f-25d8-dfeb-1653e3c8ba95@eastlink.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <059f4f08-7f7f-25d8-dfeb-1653e3c8ba95@eastlink.ca> User-Agent: NeoMutt/20170113 (1.7.2) hello, > ... within the function?  The way I have it is surely a bit abominable, > somehow 'cp' needs to know that "now is the time" is one argument.  I should > know this. "$@" expands as an array and "$*" expands as a string so func () cp oldfile "$*" should probably do what you expect. regards marc