Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Re: How to efficiently allow * in a cml string
- X-seq: zsh-users 27364
- From: "jdh" <dhenman@xxxxxxxxx>
- To: <zsh-users@xxxxxxx>
- Subject: Re: Re: How to efficiently allow * in a cml string
- Date: Thu, 25 Nov 2021 23:07:14 +4000
- Archived-at: <https://zsh.org/users/27364>
- List-id: <zsh-users.zsh.org>
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 <larryv@xxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author