zsh-workers
 help / color / mirror / code / Atom feed
From: Mikael Magnusson <mikachu@gmail.com>
To: Mikael Auno <auno@kth.se>, zsh-workers@zsh.org
Subject: Re: Prefixed backslash removed when completing command
Date: Wed, 27 Oct 2010 12:49:31 +0200	[thread overview]
Message-ID: <AANLkTimhkE0tBjmOCKCjRZueYKGoJ5z=HN3TxaHX16UQ@mail.gmail.com> (raw)
In-Reply-To: <4CC801C1.1020109@kth.se>

On 27 October 2010 12:41, Mikael Auno <auno@kth.se> wrote:

> You are completely correct. I misunderstood your reply as I did not know
> that the backslash was at all related to quoting or that ordinary quoting
> had the same result as prefixing a command with a backslash with respect to
> suppressing alias expansion. Prefixing with single or double quotes works
> great, especially as the closing quote is appended automatically.
>
> Thank you for this insight,

It's a little bit different from that even. Alias expansion is done
literally on the input basically just split on spaces. So even things
like ''mplayer or mplaye\r or mplayer"" will "cancel" out alias
expansion. That the quotes disappear in normal shell parsing is sort
of a lucky coincidence as far as the alias expansion is concerned. :)

-- 
Mikael Magnusson


  parent reply	other threads:[~2010-10-27 10:49 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-20 11:28 Mikael Auno
2010-05-20 12:39 ` Peter Stephenson
2010-10-27  9:06 ` Mikael Auno
2010-10-27 10:02   ` Peter Stephenson
2010-10-27 10:41     ` Mikael Auno
2010-10-27 10:48       ` Peter Stephenson
2010-10-27 12:23         ` Štěpán Němec
2010-10-27 12:29           ` Mikael Magnusson
2010-10-27 12:49           ` PATCH: document more alias problems Peter Stephenson
2010-10-27 10:49       ` Mikael Magnusson [this message]
2010-10-27 15:43     ` Prefixed backslash removed when completing command 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='AANLkTimhkE0tBjmOCKCjRZueYKGoJ5z=HN3TxaHX16UQ@mail.gmail.com' \
    --to=mikachu@gmail.com \
    --cc=auno@kth.se \
    --cc=zsh-workers@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).