Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Quoting the arguments to a function
- X-seq: zsh-users 21929
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Quoting the arguments to a function
- Date: Fri, 16 Sep 2016 12:52:30 +0200
- In-reply-to: <nrf4he$u13$1@blaine.gmane.org>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-followup-to: zsh-users@xxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <nrf4he$u13$1@blaine.gmane.org>
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 <vincent@xxxxxxxxxx> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author