Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Treating alias or function arguments literally
- X-seq: zsh-users 21922
- From: zv <zv@xxxxxxxx>
- To: Jérémie Roquet <jroquet@xxxxxxxxxxxxx>
- Subject: Re: Treating alias or function arguments literally
- Date: Thu, 15 Sep 2016 16:20:33 -0700
- Cc: Zsh Users <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=RQVqZUHMqFqciMMG53SRjnBwOuMqxYi8bgWyOd/O1p4=; b=WyT//JzYdBKAzSJHrDpRmfVwAJKpHOpAiumVvs40FDhsjvofRNDr8F536IPg23+0Xt iuqh79+9LtWNoxF06mXqEPt5v1rINNaO/jLDVfFv8ynhWCNBtr8ZCfBZ0t33ZNFfRt8l rU7XOy8/G7p7kiP52MgsvzRI1BvTf5lGYL8w4=
- In-reply-to: <CAFOazAMbe-vY1QX7ftFYs-D4x3p=5F3bqXzo8Le+poSrozuF3Q@mail.gmail.com>
- 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: <bf4416db-d9ce-5e1b-bbd6-5ed77067b1b3@nxvr.org> <CAFOazAMbe-vY1QX7ftFYs-D4x3p=5F3bqXzo8Le+poSrozuF3Q@mail.gmail.com>
I have already declared this function `noglob' & `nocorrect' (I just checked with an alias and that doesn't effect it either)
On 09/15/2016 03:48 PM, Jérémie Roquet wrote:
> Hi,
>
> 2016-09-15 23:47 GMT+02:00 zv <zv@xxxxxxxx>:
>> I have a calculator function that I use from ZSH directly which frequently triggers shell expansion, e.g
>>
>> [zv@syszv] ~/zv.github.com [master*] >> calc 20*15/2
>> zsh: no matches found: 20*15/2
>>
>> Is there any way I can ask zsh to supply a particular alias or functions parameters either without expansion or as a single string?
> Sure: alias calc='noglob calc'
>
> Best regards,
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author