Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How to efficiently allow * in a cml string
- X-seq: zsh-users 27363
- From: Lawrence Velázquez <larryv@xxxxxxx>
- To: jdh <dhenman@xxxxxxxxx>
- Cc: zsh-users@xxxxxxx
- Subject: Re: How to efficiently allow * in a cml string
- Date: Fri, 26 Nov 2021 00:46:12 -0500
- Archived-at: <https://zsh.org/users/27363>
- In-reply-to: <20211125210620.6817@sachi>
- List-id: <zsh-users.zsh.org>
- References: <20211125210620.6817@sachi>
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