From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27073 invoked by alias); 15 Sep 2016 22:26:51 -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: 21920 Received: (qmail 29391 invoked from network); 15 Sep 2016 22:26:51 -0000 X-Qmail-Scanner-Diagnostics: from granite.fifsource.com 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(173.255.216.206):SA:0(-0.0/5.0):. Processed in 0.293115 secs); 15 Sep 2016 22:26:51 -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=SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: phil@fifi.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at fifi.org designates 173.255.216.206 as permitted sender) Message-ID: <1473977849.22417.31.camel@ceramic.home.fifi.org> Subject: Re: Quoting the arguments to a function From: Philippe Troin To: zsh-users@zsh.org Date: Thu, 15 Sep 2016 15:17:29 -0700 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4 (3.10.4-4.fc20) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit On Thu, 2016-09-15 at 14:41 -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? Well, not exactly, you can turn off globbing with: alias calc='noglob calc' But that won't work for: % calc 0xff&0x80 still would be parsed as: % calc 0xff & % 0x80 Phil.