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 152A92236B for ; Thu, 21 Mar 2024 11:21:32 +0100 (CET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1711016492; b=XTNTb0S1XeuYg1TpAYJHCQyvq5MDfrlgld+YmDHsLKoWIyMiBfCOUNpMTw2I2sEwDEPCuYO0xh 0QwfC/Gj1ojU/Thewn+0DKN/rKxf8cboDbnDm3aKDpYNvrVXjzKzWpC268FCMzwrw8AYv+gWl6 Xo2M+e1KZuKuDvmV86pxYI3gTlHxTDEissvmf1a+3w8BzVcJnUcFYkTXkgX1G1EDLMDQwF8cia /ZmgdkM3RbTVgoJz6unKUedHKo0kNIXYBJSWQKl+/iTJgxJK+JNWxxDp2O7znF74aPv9DevXTx O2casBBds0XG4tajtoD1XztWFnS49UsmE8VqgCuXKZPxoQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (joooj.vinc17.net) smtp.remote-ip=155.133.131.76; 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=1711016492; bh=RZGOb7iR06MG45sS1ly43sCehIaHNqtQxZhdmx0xWTo=; 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=GkjT9VlY0BLxTP4H0AtR9wwmG3zfb+QSvuscjRNawdPUWdpYwQHj4TgduTYEoQ2dyh+CZIVWVk CfXWanRznn4immV43ssFU/nuheFiWF7J+LMsLEZcQtiC6nSPVEDpvuqsyw4DgnybYGHdGfffHo qvGZv13otYsb+1lCtd2/FDqOb7vo5QwYtF6SVhPbDt9SfhFtwB19DRnYKAiYV5au/Q8iXopl/l EtrTW7VxIkobdo4lDDAis3SQ+WF5atI4rc3KYEqPMYdfV0tbU6jentxL6i8+L6SiWZ6l33SLXu sAbOsHubbnkspOXhgQGJcc+WvoO9djdLR2SKA/KXq00l4A==; 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=VQBjw6y1XhDVmAz0+L/cDaR7CcZEmDNxq6AaypGPF48=; b=OV66fFCGzoVkeFtqP6ig7V8G4L 1bpWtR5LCZVh6IljT4dbUKLNXfxPGPLExsJOB9XdPAB/iM7ICX2fdu3DaTx4n15JalHoveWrBrQmz Za6z2nhzYfFGOYmbE4gIj6Tum/zT26Ue7HIoYOj2oBxNVsm9fggR6YWj0UDAKLYpRBV1iBIvqKVwY f5W7qFXtobEbhB0RRB8qLIz3+ubAImsAZ2sFNo2j/oRuMj+NiXXqv+FcfmRAsxRVdq+tXpuGhEeNH haNbhfwe1I8arQX1c46ytXhMCZTLwHERitypiwSW1CrJyQdq6oOGbZi3T+BXCr1uszLPkNYStGSmJ v4zfENMA==; Received: by zero.zsh.org with local id 1rnFYC-00025g-BQ; Thu, 21 Mar 2024 10:21:32 +0000 Authentication-Results: zsh.org; iprev=pass (joooj.vinc17.net) smtp.remote-ip=155.133.131.76; dmarc=none header.from=vinc17.net; arc=none Received: from joooj.vinc17.net ([155.133.131.76]:33956) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1rnFXx-0001mn-Ni; Thu, 21 Mar 2024 10:21:18 +0000 Received: from smtp-qaa.vinc17.net (135.197.67.86.rev.sfr.net [86.67.197.135]) by joooj.vinc17.net (Postfix) with ESMTPSA id 793E3888; Thu, 21 Mar 2024 11:21:17 +0100 (CET) Received: by qaa.vinc17.org (Postfix, from userid 1000) id 33E5ECA00B0; Thu, 21 Mar 2024 11:21:17 +0100 (CET) Date: Thu, 21 Mar 2024 11:21: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: <20240321102117.GB164665@qaa.vinc17.org> Mail-Followup-To: zsh-workers@zsh.org References: <20240315125317.GC3738413@cventin.lip.ens-lyon.fr> <20240319105745.GA4811@qaa.vinc17.org> <20240319123444.GB4811@qaa.vinc17.org> <8F03279D-3BFF-4612-92A6-78A2C119FBD3@kba.biglobe.ne.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8F03279D-3BFF-4612-92A6-78A2C119FBD3@kba.biglobe.ne.jp> X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/2.2.12+69 (354c5b11) vl-149028 (2023-12-10) X-Seq: 52789 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-21 18:41:08 +0900, Jun T wrote: > BUT: > Do we really need the option HIST_REDUCE_BLANKS? I mean, how about > making zsh behave always as if HIST_REDUCE_BLANKS is ON? > Are there any user who want to keep unnecessary spaces in history? One possibility is that they might have "formatted" long commands, e.g. using the backslash to write it on several lines, e.g. echo "some string" \ "another string" With HIST_REDUCE_BLANKS, this is simplified to echo "some string" "another string" > Or calling histreduceblanks() may slow down the interactive zsh? I doubt very much about it. With HIST_REDUCE_BLANKS, history handling always seems immediate for me. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)