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 B3A3227209 for ; Wed, 13 Mar 2024 13:38:39 +0100 (CET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1710333519; b=CVMGtfXH0nq54KOO+VnDIBIUsp90ZYboq+b3cRx98pfA0TUbswIQ3jBTDdeUX6Vk9uhmKG0sCg qYd54AS3KaJi4jkxhg+NVn1oIjqQ53plR60x8ftsbr8Pge/2x7Injnkm1UsakRG7Kts9Dv77M/ j62J3Vqu8NbGpD4A/sucxQtoPpRM/bWn7UrWeGfn+w3mn9wH/V0xZRl/fGRGHbF+VTcGozLe9R tJynfLd/AKtsFxpDfBLTyOzdw7nAnSu8W6IRDB6FRSVHhDzfrrlOSPmlPrS+qD5yh1dqmosUCa weejX5C0Z803tyTPlIe8zwuAMXO5v/zoMhRe53audOfbOg==; 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=1710333519; bh=8Cp98/7tGDcvtV0dWqJRM/PokV1qLcFORlkihvAXiLQ=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:MIME-Version: Message-ID:Subject:To:From:Date:DKIM-Signature; b=X0OHcISQWDlqUA7q9Ehrnb9e0xoCp90KkT2d/L71E/utRa3djPb84jL9NugErHR0/0TUopcSaj GAauSVs97CuzrV9XO72GjM0c9AlV3toBAAE/jCo8UaYetERaz39+GKcobZ4mG8Gs4Zgvgmqv46 hUHSFbjtYL2gzKx3Qve98Fv5iNeAo+eJZJ/cH4Sep7jPQ5L2YL891wKXcieKdBFRQud4DlBYSx EAO+Wk2c6ce7ryJYJC3ryihoDuosT6DPaeKiRv5prJw8r47+PAsnHYV9HWWMdD3nhmUNpLtjku 5QULDb2KinZ62LjxDsMB3oDpKBH8kuD42rRVRq0cnZQSPw==; 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:Content-Transfer-Encoding: Content-Type:MIME-Version: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:In-Reply-To:References; bh=QEG5lO7A51VwftBz2oFWikXLMSTaH2CL1ETg9ae/zrU=; b=bSfv8uoEf1bR/Rbr5PIRYt44j4 kmr74T5jHc7CZ73kRTdxEx6pQWfJIuJVQ4EvWvPhs+vhJPRmJFLp2iLJ1X8a4/17sUjc+ov/rDeAt fLXB4Ie5YATh9Ax/dtXy0bjeOBUjt6kkmAsbajBLezkJL1E5oc870JOUSADCnxkSsSuLc90R62+Ha hS4HJEG/Qld9+Ihhe4NZtHpZ/gdm6vKV1TfC6TRDBWaT4kHxnBUv/AkWel0uI+iM/pYIon9gMZs7V L7FvVqEdrUOICXIkMf/4ovjf8AW2GBPQNcz7h27VUe0lC1mkBCF6X88gXLRt+SB94AepztpkqFdRj pEzWe8Cw==; Received: by zero.zsh.org with local id 1rkNsT-000NqR-QW; Wed, 13 Mar 2024 12:38:37 +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]:47206) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1rkNsA-000NYD-Dx; Wed, 13 Mar 2024 12:38:18 +0000 Received: from vlefevre by cventin.lip.ens-lyon.fr with local (Exim 4.97) (envelope-from ) id 1rkNs9-0000000Eeh7-1mzY; Wed, 13 Mar 2024 13:38:17 +0100 Date: Wed, 13 Mar 2024 13:38:17 +0100 From: Vincent Lefevre To: zsh-workers@zsh.org Subject: HIST_IGNORE_DUPS also ignores command lines that differ by a space between quotes Message-ID: <20240313123817.GA3492761@cventin.lip.ens-lyon.fr> Mail-Followup-To: zsh-workers@zsh.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/2.2.12+69 (354c5b11) vl-149028 (2023-12-10) X-Seq: 52747 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: With zsh 5.9, HIST_IGNORE_DUPS is buggy: it also ignores command lines that differ by a space between (single or double) quotes. For instance, with setopt HIST_IGNORE_DUPS echo " " echo " " (the first echo with only 1 space character between the quotes, the second echo with 2 space characters between the quotes), zsh keeps only the second one in the history. Such spaces are significant, so that these command lines are not dups. However, if the spaces are quoted, this problem does not occur: echo \ . echo \ \ . -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)