Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Prefixed backslash removed when completing command
- X-seq: zsh-workers 28374
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Mikael Auno <auno@xxxxxx>, zsh-workers@xxxxxxx
- Subject: Re: Prefixed backslash removed when completing command
- Date: Wed, 27 Oct 2010 12:49:31 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=Z4np7Lcs006vrw2GdW3LrUFKlUKb1lpz3FkaPtlId4g=; b=UFZCogbFLqUmCeqLDiyoZ243jqtKL3Uiev5gf4xcgbAj4FbI2WSM1QA+MB2EnxGM7i efX3ErZK7qxaNi2ir1bMZShBslswAbVk9FaEFnaHybePsy1ExvS6QmIfsyr0QJf5TQJA m21HR1eS+9kUqpLycK08M1YZ6i8xsnlDZgrMQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=VbJWl9KM7v1s/WGVsO/zbViT3bx5azJgwjrnwybY5OS9T2c2n8V4ubPdlQBdLhr+Da GIUREVGvmhVh9gEG09887/ijkRnRrlr0FIMKF+lAZlFuWpZkpiwEWi5r+B1GG9BLtK+I Fn0aIRCSAifFQmYn2ypmanDqD2FUyeKef3R2M=
- In-reply-to: <4CC801C1.1020109@xxxxxx>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <4BF51CF3.8010609@xxxxxx> <4CC7EB88.8020105@xxxxxx> <20101027110240.16941d1f@xxxxxxxxxxxxxxxxxxxxxxxxx> <4CC801C1.1020109@xxxxxx>
On 27 October 2010 12:41, Mikael Auno <auno@xxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author