From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11027 invoked by alias); 25 Mar 2015 18:58:41 -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: 34779 Received: (qmail 21685 invoked from network); 25 Mar 2015 18:58:29 -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=Z0FaGJ3rCMHzT9v+YHdf/jcAygFoR2+lTuLX+ViEEo8=; b=Tz5WX/p2CeMzaiD7R6cY1kM5MlrJCE/OC//S/NigTSo0gLuLiwurwznEoOZGcvPagB 574ybLC1tXr0Jmx4r+O4H37d6GYc3W+AOEwrUsZqWH+wWP9aGOlu5UbfMgRjrCYYw5hR rgi+QfOh1ik4ZFCGIeZ/Eu1/MYVoVPkyuyH4Myp1hGGouqYLA+MANNU6LJ64VHcP9SP0 pXB+HHN7GSrFBGiMjQv/DFi1kdX5O2FJVEn/DgbYn0n167bT/22YzPit6SeInMoi/nhc +JxIbGXbzEpCMLy1qb7SlHm++d+CxfnFgRNrfdGKmrVVOCDTWK6rP4FI+vXiwj1oMwws Qo+A== X-Gm-Message-State: ALoCoQn1kIZCzoKEoDxAUn14NNFk7xa26ORAg/sJtJtfsqMMRBliEP1oxlcvzFRb5uy6lUz4xVfp X-Received: by 10.182.120.3 with SMTP id ky3mr8736144obb.33.1427309905752; Wed, 25 Mar 2015 11:58:25 -0700 (PDT) From: Bart Schaefer Message-Id: <150325115822.ZM32123@torch.brasslantern.com> Date: Wed, 25 Mar 2015 11:58:22 -0700 In-Reply-To: <20150325175706.06cb1a8f@pwslap01u.europe.root.pri> Comments: In reply to Peter Stephenson "Re: PATCH: Removing aliases from history, 2015 style" (Mar 25, 5:57pm) 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> <20150325175706.06cb1a8f@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 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Mar 25, 5:57pm, Peter Stephenson wrote: } Subject: Re: PATCH: Removing aliases from history, 2015 style } } Well, it's obviously not *that* broken. } } I'll push it so that Mikael can fall over the 1 in 1,000,000 corner case } again. Here are some tests: diff --git a/Test/A02alias.ztst b/Test/A02alias.ztst index 314ec03..fe7155e 100644 --- a/Test/A02alias.ztst +++ b/Test/A02alias.ztst @@ -57,3 +57,27 @@ >And so is this >And this too >And aliases are expanded + + $ZTST_testdir/../Src/zsh -fis <<<' + PROMPT="" + exec 2>&1 + alias \{=echo + { begin + {end + fc -l -2' 2>/dev/null +0:Aliasing reserved tokens +>begin +>zsh: command not found: echoend +*>*4*{ begin +*>*5*{end + + $ZTST_testdir/../Src/zsh -fis <<<' + PROMPT="" + exec 2>&1 + alias -g S=\" + echo S a string S " + fc -l -1' 2>/dev/null +0:Global aliasing quotes +> a string S +*>*4*echo S a string S " +# Note there is a trailing space on the "> a string S " line