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

Re: Quoting the arguments to a function



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