Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Quoting the arguments to a function
- X-seq: zsh-users 21924
- From: zv <zv@xxxxxxxx>
- To: Lawrence Velázquez <vq@xxxxxxxxx>
- Subject: Re: Quoting the arguments to a function
- Date: Thu, 15 Sep 2016 17:10:25 -0700
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxvr.org; s=google; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=uUKL/wzXU0QnGJOWVC06zb7hYSvZ1WYOS1NIjZ58xH0=; b=Che6rArdgtbY9w4e4eIeOOmJSF/kCTdQRXXDZLsowrthsPpAiUCYAtE9XKN8HjebM4 2CVH51Z2O824xaqLCqXVgEEJ+aM7kWmVD4P+46vy+jz1/P5EsVb4jh0R7jRJoO7SfMTq 6GgSU9RdkTvsVJVbAFg7H7QT5iCUKDI1ahk0w=
- In-reply-to: <55919C94-D486-4724-8B88-07BD709847C8@larryv.me>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <nrf4he$u13$1@blaine.gmane.org> <55919C94-D486-4724-8B88-07BD709847C8@larryv.me>
Yes, you can do that.
The goal is to not *have* to do that.
On 09/15/2016 05:09 PM, Lawrence Velázquez wrote:
>> On Sep 15, 2016, at 5:41 PM, zv <zv@xxxxxxxx> 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"
> Why can't you just quote the argument?
>
> % calc '20/2*15'
>
> vq
Messages sorted by:
Reverse Date,
Date,
Thread,
Author