From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17018 invoked by alias); 25 Mar 2015 19:40:39 -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: 34780 Received: (qmail 27832 invoked from network); 25 Mar 2015 19:40:36 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=eIkrQ32Iao8YvCm/PMs6fN1KokbJblcrw9bH4sxgN44=; b=Hpr8YB6dTDr/eLVaFFB3O5wUDO9aexyCCnFSN6QPBz/HAbT9OjsFM9pD81yrZYU3oH 5imd/lFtcb/tnE+AQgVLpHWIU4g1mNy8h+snSDQhLiGwbWX1oxS8mjWwLHTqKcG8jMMW /YbutcgdNlu0y1a4ymhdZRwqbSaRLbqRpMdGxfpyjr2gq/wyWqNnSGNhLQsOe/AecI8J 59DtaeE9xMrKdFRR3aK1T5UF+ZZ0CRZzt3uBazwhyX+O2tymjnoJ00ED4C1lsVUjoJLd tLjUHxWKcZ9vrXyX1luKkjKuunlmuwIYPTzMhCOMVNzygZt4oDfNOLnjuhz1uAQXaKZy L1eA== X-Gm-Message-State: ALoCoQlo6h4UNQBSsMxoek0nRMTGS9tO2toWMfXQNO4n9PVCaRZnyBEdj58hyHO2/QnBAjY4CSpb X-Received: by 10.202.191.194 with SMTP id p185mr8514143oif.128.1427312434992; Wed, 25 Mar 2015 12:40:34 -0700 (PDT) From: Bart Schaefer Message-Id: <150325124032.ZM32185@torch.brasslantern.com> Date: Wed, 25 Mar 2015 12:40:32 -0700 In-Reply-To: <20150325154853.7efc21d0@pwslap01u.europe.root.pri> Comments: In reply to Peter Stephenson "PATCH: Removing aliases from history, 2015 style (was capturing output of !! not working)" (Mar 25, 3:48pm) References: <20150319105716.620cd931@pwslap01u.europe.root.pri> <20150319125351.1e270c2d@pwslap01u.europe.root.pri> <20150320105703.2754b6af@pwslap01u.europe.root.pri> <150320090420.ZM21908@torch.brasslantern.com> <20150322183556.1fa0f143@ntlworld.com> <150322162235.ZM1728@torch.brasslantern.com> <20150323213426.21fd79c8@ntlworld.com> <20150325154853.7efc21d0@pwslap01u.europe.root.pri> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: "Zsh Hackers' List" Subject: Re: PATCH: Removing aliases from history, 2015 style (was capturing output of !! not working) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii It may be appropriate to point out this tidbit: torch% alias -g '&&'=foo torch% echo foo&&bar foo foobar torch% fc -l -1 2 echo foo&&bar The point being that a space is introduced before the && expansion because && is parsed as a separate word, but no space is added after it. If this were going to change, I would recommend using something akin to my patch from workers/34738 to add the second space, rather than attempt to remove the first one. -- Barton E. Schaefer