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

Re: How to efficiently allow * in a cml string



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




Messages sorted by: Reverse Date, Date, Thread, Author