zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@zsh.org
Subject: Re: noglob does not call alias?
Date: Thu, 13 Mar 2014 10:02:58 -0700	[thread overview]
Message-ID: <140313100258.ZM14546@torch.brasslantern.com> (raw)
In-Reply-To: <5321CC16.30606@yahoo.com>

On Mar 13,  8:47pm, Amm wrote:
}
} alias rm='nocorrect rm -i'
} alias noglob='noglob '
} 
} $ noglob rm 1
} zsh: command not found: nocorrect

This is documented:

nocorrect
     Spelling correction is not done on any of the words.  This must
     appear before any other precommand modifier, as it is interpreted
     immediately, before any parsing is done.  It has no effect in
     non-interactive shells.

The other precommand modifiers are actually builtin commands rather
than reserved words.  There is a long list of reasons it ended up
this way which I'm not going to attempt to repeat here, but that is
why their arguments don't get magic treatment at parse time.

-- 
Barton E. Schaefer


  reply	other threads:[~2014-03-13 17:03 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-13  8:52 Amm
2014-03-13 11:24 ` ZyX
2014-03-13 12:38   ` Christoph (Stucki) von Stuckrad
2014-03-13 13:36     ` ZyX
2014-03-13 14:36     ` Bart Schaefer
2014-03-13 15:17       ` Amm
2014-03-13 17:02         ` Bart Schaefer [this message]
2014-03-13 14:48     ` Amm

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=140313100258.ZM14546@torch.brasslantern.com \
    --to=schaefer@brasslantern.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).