From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3470 invoked by alias); 16 Sep 2016 10:52:38 -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: 21929 Received: (qmail 6894 invoked from network); 16 Sep 2016 10:52:38 -0000 X-Qmail-Scanner-Diagnostics: from cventin.lip.ens-lyon.fr 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(140.77.13.17):SA:0(0.0/5.0):. Processed in 0.351841 secs); 16 Sep 2016 10:52:38 -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=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: vincent@vinc17.net X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at vinc17.net does not designate permitted sender hosts) Date: Fri, 16 Sep 2016 12:52:30 +0200 From: Vincent Lefevre To: zsh-users@zsh.org Subject: Re: Quoting the arguments to a function Message-ID: <20160916105230.GB3491@cventin.lip.ens-lyon.fr> Mail-Followup-To: zsh-users@zsh.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/1.7.0-6790-vl-r91193 (2016-09-07) On 2016-09-15 14:41:03 -0700, zv wrote: > I want to supply the arguments of a function (an alias to Emacs > `calc') without expansion, e.g: > > zv@computer# calc 20/2*15 > 150 > > Today of course the result gives "zsh: no matches found: 20*15/2" > > Is there any way to signal to ZSH that an alias or fn should have > arguments supplied literally? IMHO, arguments should also be properly quoted, but the solution would be a feature in ZLE to do the quoting automatically. Something like url-quote-magic. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)