From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19249 invoked by alias); 27 Oct 2010 10:49:46 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 28374 Received: (qmail 3560 invoked from network); 27 Oct 2010 10:49:35 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.160.171 as permitted sender) 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= MIME-Version: 1.0 In-Reply-To: <4CC801C1.1020109@kth.se> References: <4BF51CF3.8010609@kth.se> <4CC7EB88.8020105@kth.se> <20101027110240.16941d1f@pwslap01u.europe.root.pri> <4CC801C1.1020109@kth.se> Date: Wed, 27 Oct 2010 12:49:31 +0200 Message-ID: Subject: Re: Prefixed backslash removed when completing command From: Mikael Magnusson To: Mikael Auno , zsh-workers@zsh.org Content-Type: text/plain; charset=UTF-8 On 27 October 2010 12:41, Mikael Auno 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