zsh-users
 help / color / mirror / code / Atom feed
From: "Lawrence Velázquez" <larryv@zsh.org>
To: jdh <dhenman@gmail.com>
Cc: zsh-users@zsh.org
Subject: Re: How to efficiently allow * in a cml string
Date: Fri, 26 Nov 2021 00:46:12 -0500	[thread overview]
Message-ID: <b372942e-3cb9-443b-827e-db833dceccec@www.fastmail.com> (raw)
In-Reply-To: <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


      reply	other threads:[~2021-11-26  5:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-24  5:06 jdh
2021-11-26  5:46 ` Lawrence Velázquez [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b372942e-3cb9-443b-827e-db833dceccec@www.fastmail.com \
    --to=larryv@zsh.org \
    --cc=dhenman@gmail.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).