From: "jdh" <dhenman@gmail.com>
To: <zsh-users@zsh.org>
Subject: How to efficiently allow * in a cml string
Date: Thu, 25 Nov 2021 21:06:20 +4000 [thread overview]
Message-ID: <20211125210620.6817@sachi> (raw)
I don't fancy the idea of always using a backslash * to escape the asterisk for a simple script I wrote and one which will never use the * as a wildcard character.
For now I'm using a '@' in it's stead and doing a :gs/@/* to change the @'s into *'.
But, I really want to use the * as is and not have to use @ and then convert it.
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.
Simple example: How can I get a script to do 2*4 in the below simple version:
$ calculate 2*4
Thanks.
next reply other threads:[~2021-11-26 5:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-24 5:06 jdh [this message]
2021-11-26 5:46 ` Lawrence Velázquez
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=20211125210620.6817@sachi \
--to=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).