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 01A1E22076 for ; Thu, 21 Mar 2024 06:37:55 +0100 (CET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1710999475; b=KZNwi8pz4ZHUVmd60Gq1FcuII6bs5XnA5hTJxt3DOnSfm/c+XFsAMAeXybQtCKtFgjNXIdHkV6 EZZN08DmMwYFRxeEKsTnGxtgCoKp3fthrTj2ADXqHY32cLe1RPciEl4/yNB9q9rH46p0oHt7AF g17N2O7t+LVbQgVNgVTeTU6bgx4CSpG2Hb1oYM6P3RsDohGvd8S3QWs0DA7Jlvpgl5/wF07PzD D8hi7kyxPKpm2dCMKWSY5HgbmVI30kUwyYq3sfbVv1XpJHgH3E52nKufHpFGJR/DpWV7RRJPck 3fO355V2KEjWCdfTINeF2paxw21M1BHt+vTEpv2RDlFlVQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ed1-f42.google.com) smtp.remote-ip=209.85.208.42; dkim=pass header.d=brasslantern-com.20230601.gappssmtp.com header.s=20230601 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1710999475; bh=DBWt7OhFNqwiCq+zOD6NkfLFiy9m/pCGPTCFiWdBfgI=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:To:Subject:Message-ID: Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature:DKIM-Signature; b=ntRdBgKnrXaQ2uI1cy6cGRDlDQqn85b5Ey4aLJwBg3JbqFnol1DXG7TLEK/tdcZwOeVsTGoVlM 9+GjhWUCkd8IV30PPQ1/V/On6YetzECx4omamyVdYw+g2pzVvBXQskW43xXfi4s34SQfgDhRq0 W/d3cEdu4ulcDlBE/lJZXNy4AUJ4bMRfQb9tUXTimrJO1Rw3CeTZr8ywy5BgS7izcW+dPhMNOD FLKw8uhKabK3s/i4+nUbleeOMsOjSR3azfS/Rv0vz916/R5Nm9UnYNPGt2/01yEIrnzfu9Zx1y /qTuJVdNTzDmo74SfgpL4OPXwxW/a6krpA0/rsRRzeZbQQ==; 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:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=inyt/HL/5skmstfi2Fq0cgJhPV56EixdlhmsAOkLSQU=; b=BFX++BpkfbaUt3YzGswLGaKEz6 XYgVROMgv0fUYVyEquvp+cb01VsmsjNS2ukVwM2ksiGA6Rl1xmQI/2DDQbO1O2C+dIc0B1Y0e44PV Q8FLicmdCKN1flsvASs8zVv8vhG3rHIvdi+3jEm1iQSYY7Oo+4KoflG6pSIvk7H9AtVcme845Z7pX HKV7WyRcMofpXc9TJJVJZ+IzV8OFYY5lzfg+Hd37V7Emn6SfpdHPvwgzTJ+HsmsNhBQW9vrkfR0qS u6ZzmJff+isrHR12PuyVxdYnT1XM7QtZv5kXzfEMra1zbbjmkigsayOFDbzh8jek+OFm/d2HJG7ft dE4480nw==; Received: by zero.zsh.org with local id 1rnB7j-000HbY-8L; Thu, 21 Mar 2024 05:37:55 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ed1-f42.google.com) smtp.remote-ip=209.85.208.42; dkim=pass header.d=brasslantern-com.20230601.gappssmtp.com header.s=20230601 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ed1-f42.google.com ([209.85.208.42]:43514) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1rnB6u-000HFk-DW; Thu, 21 Mar 2024 05:37:05 +0000 Received: by mail-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-565c6cf4819so2877976a12.1 for ; Wed, 20 Mar 2024 22:37:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20230601.gappssmtp.com; s=20230601; t=1710999423; x=1711604223; darn=zsh.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=inyt/HL/5skmstfi2Fq0cgJhPV56EixdlhmsAOkLSQU=; b=mastH0Nn9bCL5o928+VX+xUM8BlzdzgFA+ODfv+i0oqk646TtY3zyKGkLwhYQwv6JM /qYreP0PkVi/8tZ59RrGhaAUlv9vSKo+E0UfzBzN1jaFSIyaaPuLnAGElh5V749WH3oN KXN2H8C78upca1FJ07UggsEvCGmvTMceUQF6wWrBj1SWFVd5oJMFFqYtgNQ5vHeeME+x ElcfWa4WtnrVQHjt1uiIgeLCC3KLOJqDHc+So5jiZMcDZklIF9XtBUpWqE3AWNOEw9lO be+ZitY+e49Iqv3cKWDRzOXfW7JsTzqUEqfDb1DUXW0sqInysmVWl/dTwG7SXbUkBEDq /bTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710999423; x=1711604223; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=inyt/HL/5skmstfi2Fq0cgJhPV56EixdlhmsAOkLSQU=; b=nbhbqe/Xqd1oq2iqYY0YDqMyWWAYhOa42w8G0/opz5llWc4gvRottcZnX2xAqDNXrv wc3UrLMj3Ce+UaRiJBoh0/kgVcgDlTzI+t23TR33xQXiKJYyppuWEmzrGG0LLmLcazaM EqsUDy4kWDOKC+JwhVnnsrleMFFO6pE2ZKpwJS3fFGnSmqgXs0gJUpfkn4CWZp/qgY3t 3NLFEkWNH1LDZOV0JYdNgNFeK7IMCrtjvCpKpqfP68VUYdmVYZ9eMmuWoLMAnfoWkG41 KwRyCbHSVSpx+r9anEFEowzZPVMIubnAXQ8fJQa5COc97jou8X3D3z9MU8SZAQPBc1Mn Ce8Q== X-Gm-Message-State: AOJu0Yx07UChLpjewKvwm+gFIUyQ4542Pg7CP5YjPVx6qGQmGE3yctJU A6B0RpoK+oLK4+6QlaCItleOdqVd9TBcLH7prZD23BrEEWbM3uyQSZdVptiwZZDBjjkOKEPVE0J vn85cCobsxcGMNNfmR1BKHRjTXWitl2ZHSE6xVcgCnVN6Z9J1yg== X-Google-Smtp-Source: AGHT+IHbIAlYMPus5EUWQgvEqBoE69Jg+0y00PNGyNjKger6D64FRQjDDSE2Ln+9ycSA4iYQ+s4TjtMZB/n2Yg0D2ME= X-Received: by 2002:a17:906:891:b0:a46:511c:ffcb with SMTP id n17-20020a170906089100b00a46511cffcbmr1392934eje.38.1710999423078; Wed, 20 Mar 2024 22:37:03 -0700 (PDT) MIME-Version: 1.0 References: <20240313123817.GA3492761@cventin.lip.ens-lyon.fr> <20240315125317.GC3738413@cventin.lip.ens-lyon.fr> <20240319105745.GA4811@qaa.vinc17.org> <20240319123444.GB4811@qaa.vinc17.org> In-Reply-To: From: Bart Schaefer Date: Wed, 20 Mar 2024 22:36:51 -0700 Message-ID: Subject: Re: HIST_IGNORE_DUPS also ignores command lines that differ by a space between quotes To: zsh-workers@zsh.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 52786 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 Wed, Mar 20, 2024 at 10:23=E2=80=AFPM Jun T wrote: > > I think HIST_IGNORE_DUPS would work as expected even without > HIST_REDUCCE_BLANKS if we use the information in chwords and > hist_ring->words, as in the patch below, for example. Doesn't that require HIST_LEX_WORDS to be set to poplulate ->words when reading histfiles? And further, would it not behave differently for "print -s" vs. "print -S"? This is more a concern when someone is using something similar to per-directory history files or other fooling with "fc -p" or zshaddhistory. Maybe not much of a worry.