What I do for some functions is: function calc(){} alias calc="noglob calc" and then I can do: calc 6*7 42 best Pier Paolo Grassi Il giorno ven 26 nov 2021 alle ore 08:08 jdh ha scritto: > > Thanks for the lead. > You're right, I do want to avoid having to use quotes and backslashes. > I'll follow up looking into the information you kindly supplied. > > Thank You. > > --------- > > Lawrence Velázquez wrote: > > > On Wed, Nov 24, 2021, at 12:06 AM, jdh wrote: > > > Is there some way the invoiked script can reach into the buffer before > > > zsh complains about the *. > > > > > > I've tried: 'unsetop GLOB' but that didn't work. > > > > Well yeah, filename expansion happens before the script executes. > > > > > Simple example: How can I get a script to do 2*4 in the below simple > version: > > > > > > $ calculate 2*4 > > > > Presumably you won't be satisfied with > > > > calculate '2*4' > > > > or > > > > noglob calculate 2*4 > > > > You may want to read through this thread beginning with users/27103, > > which already covered a lot of the same ground. > > > > https://www.zsh.org/mla/users/2021/msg00815.html > > > > -- > > vq > >