From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20874 invoked by alias); 25 Mar 2015 18:42: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: 34778 Received: (qmail 25336 invoked from network); 25 Mar 2015 18:42:27 -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.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=3LbJEWjNt+SGs+aZ1P2AsnbxsddRaB1PxbU4mnc6WLo=; b=iqoI453wu7r6hIJbeDMplz8jiGldHuhejjEfGtbDczypneqOpCnW69rJKkRBcCipAt +WhxjiPCPF6LZ+e72NWzSR5UtsCKne4QxRo4TuqEDEJLSLDMsa81j2YT6Ul8vz0IcfCx NOu290jcWAAuLXZ4mS1+OB7bkQhMJmanNBZCzx7rf3hvRHUlemx8f01d0AB82kyco+6O lV/0FWmGIrzjCl5/4RtdVgwwMNeFXYp7r2mahXwEllA56PlBtH5dbYdJl95BUO6o/w7x YC9g/xjvJLWIfb4tjE9+aAOSu64SXw9N3NKM8sLRfN7J2CcoVbHZJ6DEW9KPG6mtFG/g HCeQ== MIME-Version: 1.0 X-Received: by 10.107.16.31 with SMTP id y31mr15494653ioi.53.1427308942449; Wed, 25 Mar 2015 11:42:22 -0700 (PDT) In-Reply-To: <20150325175706.06cb1a8f@pwslap01u.europe.root.pri> 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> Date: Wed, 25 Mar 2015 19:42:22 +0100 Message-ID: Subject: Re: PATCH: Removing aliases from history, 2015 style From: Mikael Magnusson To: Peter Stephenson Cc: "Zsh Hackers' List" Content-Type: text/plain; charset=UTF-8 On Wed, Mar 25, 2015 at 6:57 PM, Peter Stephenson wrote: > On Wed, 25 Mar 2015 15:48:53 +0000 > Peter Stephenson wrote: >> On Mon, 23 Mar 2015 21:34:26 +0000 >> Peter Stephenson wrote: >> > Ideally, I think we'd handle not adding >> > the alias text to history the way we've been doing in other cases by >> > checking INP_* flags, which is much less hit and miss. That ought not >> > to be too difficult, but I haven't really got my mind round the >> > consequences yet. >> >> Hmm... I typed this in more or less as below (with one subsequent fix to >> testing flags for interaction with !-history) and was expecting it to >> fail horribly, and so far it's failed to fail. Perhaps my expectations >> were low simply because it's been the old way since 2 million BC. >> >> I'll try it further. > > 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. FWIW, I don't use !-expansion at all, but who knows, maybe that'll make it more likely I find the corner case. -- Mikael Magnusson