From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id 4B2A724804 for ; Fri, 15 Mar 2024 13:53:30 +0100 (CET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1710507210; b=Zz4Q8Wm65u8ya0gW5FDiQEBw0jpX8OqI/Nhpxo/84yqbZgwYN7n2q92rbQ6wr88wZ0jhr9TEQY EAeUnNmdwgjKpcHYuvcjYLboo75RMnTapAhW7W78SfMkX9Tz9vTai7mfgQXY8GDUXf5CQ4WOzg +DLdq4imiRUkRRH9qA12DKSiubsd4fYfeHH9IpZ0MLI6q8QA307ZSBOQ2I1AWWOTv0TDtH1PQn 6OMr2RGe2DDiEbaBDu8UQ71gZwqeVIXRhX2GEzI/sGBGyTyAINuBNxYaGo4A1RbOe5f/SPiqre mz2Dugd4Bq9i7+3gmJOG3xCWdIs3xd8P3HvXkv3rz1G0Dw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (cventin.lip.ens-lyon.fr) smtp.remote-ip=140.77.13.17; dmarc=none header.from=vinc17.net; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1710507210; bh=izuEDN5yCOrd8xD7tJAOvFjBM672UDoDusYeJaMKXtA=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:To:From:Date:DKIM-Signature; b=Uj2pbrPY6385ajcqh4wXrESzkZnrsXwFkaaSp3YSXEPlt1i5ihlfUjJnlQMRutoSVU/EiQ4JAb l1ZWs/EHKjmYpBw5BkWDmNnYPLNIH9gZpSwO8q6Iy19f8CFdX7nbj13DobzAjS9446dho9pEnb 3+p21yI+v3Qw42v8O5a0H3RFCEvtFlfCfX6/2voBmqEDFBFqbPtajHoWOnAzMVzdlKPRW+T754 rvv82TYTTvmK95q/CxMXJZ2Ha2R2uO+FuqqqItyia58/A6HO+iskXkHCUBAnEIgF1yzvoqC++m lY2UCbGqtg+4ENTe3adnJNH+aQg23dFW36l1XKGTq7KleQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:To:From:Date: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=qZNxOa8GNz4VByGwLboffGi+gQfNatwRyQEMnDWnr4M=; b=AcdjgAig8uvs5L+Z3hyYCMw2rD Q2AceKfjdFc5EiipCdkveuIIsiL3BoZTUzBsBGYYyjYCWt0mKiLy7qA6+R0uLYS4GQojdfqdWG/QZ dlUX5NmwJocXHetfqiYLJ94ZA85dEU12yvalk9JPa8YlRtDK/L5xM4lQvO9rymqvjcEt52Vix3ZZN G0g1c8CxLBESK+ot+T8pTPqRHfEsTtXLxkouT5zEl6nBuWCYY145jlJPv81gGSE/xKkFMxTR0lcDe ZCa+bYNfBhpnNh2vHxcI0PXTnSr9keA848YfqKPbWkGHkZVbFYzV3Scg9vu7tOh8ITjxcFSjRwNvx TVDeyDjw==; Received: by zero.zsh.org with local id 1rl73y-0005c8-M4; Fri, 15 Mar 2024 12:53:30 +0000 Authentication-Results: zsh.org; iprev=pass (cventin.lip.ens-lyon.fr) smtp.remote-ip=140.77.13.17; dmarc=none header.from=vinc17.net; arc=none Received: from cventin.lip.ens-lyon.fr ([140.77.13.17]:60082) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1rl73l-0005Ij-B1; Fri, 15 Mar 2024 12:53:18 +0000 Received: from vlefevre by cventin.lip.ens-lyon.fr with local (Exim 4.97) (envelope-from ) id 1rl73l-0000000FhXz-0SuV; Fri, 15 Mar 2024 13:53:17 +0100 Date: Fri, 15 Mar 2024 13:53:17 +0100 From: Vincent Lefevre To: zsh-workers@zsh.org Subject: Re: HIST_IGNORE_DUPS also ignores command lines that differ by a space between quotes Message-ID: <20240315125317.GC3738413@cventin.lip.ens-lyon.fr> Mail-Followup-To: zsh-workers@zsh.org References: <20240313123817.GA3492761@cventin.lip.ens-lyon.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/2.2.12+69 (354c5b11) vl-149028 (2023-12-10) X-Seq: 52763 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: On 2024-03-13 22:13:09 -0700, Bart Schaefer wrote: > On Wed, Mar 13, 2024 at 5:38 AM Vincent Lefevre wrote: > > > > With zsh 5.9, HIST_IGNORE_DUPS is buggy: it also ignores command lines > > that differ by a space between (single or double) quotes. > > With zsh back to at least April 1, 2000 and probably sooner. > Searching history with the ZLE widgets works the same way. > > Doing a full syntax analysis here would make it a lot more complicated > and a lot slower. I don't think you need to do a full syntax analysis. Isn't this just related to tokenization (something like that)? Note that spelling correction, which occurs *before* the line is put in the history, detects quoted text and won't try to correct it. So it seems that "quoted status" can be taken into account at that point. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)