Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Quoting the arguments to a function



> 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