From: "Jérémie Roquet" <jroquet@arkanosis.net>
To: zv <zv@nxvr.org>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: Treating alias or function arguments literally
Date: Fri, 16 Sep 2016 00:48:59 +0200 [thread overview]
Message-ID: <CAFOazAMbe-vY1QX7ftFYs-D4x3p=5F3bqXzo8Le+poSrozuF3Q@mail.gmail.com> (raw)
In-Reply-To: <bf4416db-d9ce-5e1b-bbd6-5ed77067b1b3@nxvr.org>
Hi,
2016-09-15 23:47 GMT+02:00 zv <zv@nxvr.org>:
> I have a calculator function that I use from ZSH directly which frequently triggers shell expansion, e.g
>
> [zv@syszv] ~/zv.github.com [master*] >> calc 20*15/2
> zsh: no matches found: 20*15/2
>
> Is there any way I can ask zsh to supply a particular alias or functions parameters either without expansion or as a single string?
Sure: alias calc='noglob calc'
Best regards,
--
Jérémie
next prev parent reply other threads:[~2016-09-15 22:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-15 21:47 zv
2016-09-15 22:48 ` Jérémie Roquet [this message]
2016-09-15 23:20 ` zv
2016-09-16 0:30 ` Bart Schaefer
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='CAFOazAMbe-vY1QX7ftFYs-D4x3p=5F3bqXzo8Le+poSrozuF3Q@mail.gmail.com' \
--to=jroquet@arkanosis.net \
--cc=zsh-users@zsh.org \
--cc=zv@nxvr.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).