help / color / Atom feed
From: "Daniel Shahaf" <d.s@daniel.shahaf.name>
To: "Jörg Sommer" <joerg@jo-so.de>, zsh-workers@zsh.org
Subject: Re: How to use noglob with an alias?
Date: Sun, 19 Jan 2020 20:30:09 +0000
Message-ID: <f385bb10-9fa7-4dda-af12-a0a8d1f8c59e@www.fastmail.com> (raw)
In-Reply-To: <20200119163909.jdvcwrydwkznnrhm@jo-so.de>

Jörg Sommer wrote on Sun, 19 Jan 2020 16:39 +00:00:
> Hello,
> how can I use an alias and noglob?
> ```sh
> % alias foo=true
> % foo
> % noglob foo
> zsh: command not found: foo
> ```

Add «alias noglob='noglob '» to your configuration, otherwise the word
after 'noglob' wouldn't be subject to alias expansion.  (That's the default;
some reserved words, such as 'time', are an exception.)

      reply index

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-19 16:39 Jörg Sommer
2020-01-19 20:30 ` Daniel Shahaf [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:

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

  git send-email \
    --in-reply-to=f385bb10-9fa7-4dda-af12-a0a8d1f8c59e@www.fastmail.com \
    --to=d.s@daniel.shahaf.name \
    --cc=joerg@jo-so.de \
    --cc=zsh-workers@zsh.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link


Archives are clonable: git clone --mirror http://inbox.vuxu.org/zsh-workers

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git