Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Quoting the arguments to a function
- X-seq: zsh-users 21923
- From: Lawrence Velázquez <vq@xxxxxxxxx>
- To: zv@xxxxxxxx
- Subject: Re: Quoting the arguments to a function
- Date: Thu, 15 Sep 2016 20:09:46 -0400
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=larryv.me; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=LFcLaDZIFp3bTYquuEpwPImG7iE=; b=DMz05f RHUOmt6LxN/l2zhVXAyiJlRKs32UXNucpkXGopN3QxN8jAMvf3OPYR9y59HXUfd4 MClzokjBndKGIcS+YWRzygrVDZgj9sKl82sJ3EzfY7CXy5Xt/obXSVoytbRCzRvw TpQHmDMY/zoQMnlq0buQQVhXJZSNFhIbiWxUE=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=LFcLaDZIFp3bTYq uuEpwPImG7iE=; b=PE8eQIYkKBPnXZBymX4d6pfaRCjoKWc8JufaJ0ybj1TTlRk VDEcvAgNa8vhhHm3ZoF6EU2/rOV0Mf+tGhz1K7oZcahGGffDxuwIeHeszNAA210U jL5cKkO/w0gOlAL8tBEGduX2PxorY1AtSxmp9J2RgcnMCCnV9jI3NA2hIAMY=
- 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>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <nrf4he$u13$1@blaine.gmane.org>
> 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