From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 21105 invoked from network); 2 Sep 2022 05:57:46 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 2 Sep 2022 05:57:46 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1662098266; b=U4IhQTL6yGg/cm07hzQIgIHiRN2UES5GvZl/i5eSyyiUgp7gDpFwpJ8lYZNH4c/gK7QUN0hd7/ IiVucwowiCExNEvHBqi/cKLeUFwzJjTou/4IXe7LHHZoM7J3lrVGjhyilzhF1bJy4X1phRfEXH j8JV3+B2GfrpVQSPVPcAasvWsf9JvubMMzfK/qwgQl5RrW74YxPV3zkBSlXxmcI8clYqxoUyZv C9KKBntJos98C7CwJFmWv2VvInMHTaUCnoiPUGGj6feqJutMdlrH6gE0YS1YK81VEE3HPjuJEg bS1lmOppBJ+OhnkIx7U+EZzOWexJtz8LIpHGvPvEkplUrQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ed1-f50.google.com) smtp.remote-ip=209.85.208.50; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1662098266; bh=epbRLcag37nq/6naP2F4oCLJoNE4kZg3LGRgP9K/gV4=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=EDsuGmQ8hqk4YvIuqF6WEhOPMwbz8mQ2Fe0KR6did3mnyxEVoazSb6RqexBQWdnK9aQRxut18F Tbd6gvi7bZ9wof20DmoodOznZAqxQiE77bX+y0JSn3x5XQcYtVOo6oZVXB9lajQxAwp2ezVHk6 cv5pShNVRY+BuhvYdlI+gY3iBCgAUixbgNYG5FiI3FI7Jyv52nnwmu1c+jUVoDe9IbsDfhpYcq CVWs7EzffrA+DfzhEAXRZEhe2gcCPq5jFDDywILTkKMuNbYJQVp+j0BSIg29J/gDUt2I/uNS/r xLaiEwbNdxpdZg6YVdnpRCXVDaOlBDirFD5YqKlSbMGTiQ==; 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-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=rQ5VX3s7UYZxLj+N5JZyqMhDQC3OW26BqNMQtnbmhYY=; b=J3WIs73FFaTFBVTC7GDmcQUDPo Q6ApYXr1TeWTT8WG8xxxnNCrD2ZVNFi//oArfjKUGkRFCi/SDwQ4ZkccSbzgGlOOyuK5TbZfYYg/5 qVio+fGsrLTcb7PHvRdz4YFeAWTyMgyFt5HqsbO46MhZ58Ofi/BvKGBTKUuMia+SDhKX7MQd/o8eD f813qvGX/RKY2RxA641oZ1IIlMry6mjeixZ0MWK5G1g2c1L/QPiWOhwaCwAcRsds7ynUdx01WiqZV gJ8uxjcFf+QphTWZDHd3VKPPyDQ3CfRWEYGcgifRkFz/MouyJ6uTk1zualXqoY/Ga7MXbk8n1QYsh 4k9iphTw==; Received: from authenticated user by zero.zsh.org with local id 1oTzgX-000CYr-Tl; Fri, 02 Sep 2022 05:57:46 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ed1-f50.google.com) smtp.remote-ip=209.85.208.50; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-ed1-f50.google.com ([209.85.208.50]:33790) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1oTzgJ-000CE2-Um; Fri, 02 Sep 2022 05:57:32 +0000 Received: by mail-ed1-f50.google.com with SMTP id w2so1364223edc.0; Thu, 01 Sep 2022 22:57:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=rQ5VX3s7UYZxLj+N5JZyqMhDQC3OW26BqNMQtnbmhYY=; b=brkXqOurIa2FRZ5D7GfzoVfAuOc1lgdI5m5FZ+uPH83vjLZJ2L4KXv3NZhbGLRj8pO aj+cjXR18ufdyAMI/e337YSKWbKpcInyJ2sSnQJ/wtx37bW0haJczzOQe4zbaa4sG1Pc 1CJBO5o+yD5Fw5mHde4Tvje83GDQQy580i4BrU+n+Z8DVQ4zc8ZMtv0ECKM8K59bjPJm jmwtsKruaOXv0/OrMTA/32PovCE5Mccy9yMVMdEI5LTGbr0U2b/i0Bg4gp0BaTXY3rVk 47jEJWj9KDQ9l2Z3oMjdluxvEyZbtgHJG0a13rSWO3d9vNLjeUOL79+bX2knodBx1jkz 5QFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=rQ5VX3s7UYZxLj+N5JZyqMhDQC3OW26BqNMQtnbmhYY=; b=Yov1S+CmoBrxSYsHkyXckn96wrRUYICB4UaZJLx8iqcimeFYhFH3E8MyLhnfk5SdrU zp7JPCvnqHqxbupkIXL0WVr8qHRjEiYZcB/x1C6bPDDoWn1zG6HHML5HdYtl/A0NOzfM d3pTH1SLwcqQZOfQomYPollYIHyhUhheNGBxXy6xLh6leYx+NzNsXzY8579d0Tc+uE0M bmefl20jk+jNGo5p6TmlTcU2DJAvha3spRUeiOTAbQ4o2+tfhWnM9SIk+UqYGomxsHj7 o0xTxijUIUoqi7goO058VDArij0UOvzerWzwedkjVY8YilGQriyBrvRNNFHacpEn8uyv HlqA== X-Gm-Message-State: ACgBeo1n9utfhXKTjP5VBJMiPOJdwO86f/xGHBVl4sXa17mBUZHG6+OO FGszHOaoX7xWoixHKhPXWIcifFQ9ri4oPPADpfMVbPqBBDZsOQ== X-Google-Smtp-Source: AA6agR5eSSkOpXrx5s2A4zpMGld2wo95eGjQKmpy0ZV99M5FnWmYiJtGZQvT28jl07JlOJAACTpB1Mkovo/L1EBKJkc= X-Received: by 2002:a05:6402:354d:b0:448:1f80:e737 with SMTP id f13-20020a056402354d00b004481f80e737mr24178007edd.69.1662098251530; Thu, 01 Sep 2022 22:57:31 -0700 (PDT) MIME-Version: 1.0 References: <20220824043145.165779-1-felipe.contreras@gmail.com> <20220824043145.165779-4-felipe.contreras@gmail.com> <7779ec6b-10d5-410a-97da-5ec545cd6e1c@www.fastmail.com> <764a967b-86df-42bf-9242-22e9aeedfac6@www.fastmail.com> In-Reply-To: From: Felipe Contreras Date: Fri, 2 Sep 2022 00:57:18 -0500 Message-ID: Subject: Re: [RFC PATCH 3/3] FAQ: sync newuser-install To: Mikael Magnusson Cc: Roman Perepelitsa , =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= , Bart Schaefer , zsh-workers@zsh.org Content-Type: text/plain; charset="UTF-8" X-Seq: 50568 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 Thu, Sep 1, 2022 at 10:46 PM Mikael Magnusson wrote: > On 9/2/22, Felipe Contreras wrote: > > On Wed, Aug 31, 2022 at 5:28 PM Roman Perepelitsa > > wrote: > >> On Wed, Aug 31, 2022 at 11:57 PM Mikael Magnusson > >> wrote: > >> > On 8/30/22, Felipe Contreras wrote: > >> > > You may think HISTFILE, SAVEHIST and HISTSIZE are self-explanatory, > >> > > but the fact is most people need to read the documentation, and even > >> > > then they end up confused. A few days ago I replied to a person on > >> > > reddit who had a configuration with HISTSIZE bigger than SAVEHIST. > >> > > >> > That is the correct configuration. > >> > >> This is my understanding as well. To be more specific, SAVEHIST > >> greater than HISTSIZE is equivalent to its being equal to HISTSIZE. > > > > Only if you are not using APPEND_HISTORY. > > Still wrong. SAVEHIST greater than HISTSIZE is always equivalent to > its being equal to HISTSIZE as we have said repeatedly. If you > continue to argue otherwise it is surely trolling. Really? Please tell me the output of this script: #!/bin/zsh zmodload zsh/zpty export ZDOTDIR=/tmp/zsh export HISTFILE=$ZDOTDIR/.history export HISTSIZE=2 export SAVEHIST=10 mkdir -p $ZDOTDIR touch $ZDOTDIR/.zshrc for n in $(seq 10); do zpty $n zsh zpty -w $n <<-EOF echo one echo two exit EOF zpty -r $n _ done wc -l $HISTFILE I wonder if you will keep your derogatory tone towards me after running it. -- Felipe Contreras