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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, 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 20320 invoked from network); 8 Jun 2022 17:04:32 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 8 Jun 2022 17:04:32 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1654707872; b=mYXrFDkNO7YVfbCaMsHk/JlBO7Po9lsP6vip/m4pP21lRIT7x6Rln3wCsvdJWG3MHyfrVq9lqm sZFcVWihtXel6PjbdqUwt+vfiwUlOI4oOYryqAQYQSautjc7epplBU2zwJbiAE0M3ZZ44ri6vf M/xCUtKPoH/97daZDHE3QrZmb1Gi6+o7hsC/LAtixKcnd/N/Jk9UkNs9xtZdf7tX43s5mlYC34 apF1G5uPFL1pKd1rueZ147rNOPBBASWYywZjj/aB+yV5X2HlvV1OyRjYt5oAiKdOdvSE3gYKPa FTdzXrKOVbflU8w6DClRvCcrSPXA+qmK9pJ25SwB1B2cvA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ed1-f48.google.com) smtp.remote-ip=209.85.208.48; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 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=1654707872; bh=YnUvqRwzfxFmUAzZHwp7VqviFM+pYNv/Lv0Dm9FENCM=; 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=r2KLaTxFtkbeydKAFcmAVmaURig3s15B8wzg/9iMQQAqPdx1hz0mA6R801gDgm9elYb/aWI6jP MjUpcXb/qRTYK9/6d77CeceBYo+h9g5F9tB1vkVinLSgWq72N61kwk+pCmy3zNytYCnmBJIdiv OUzPBfylnuy7/lDZxDIbe1j1glgKEQKK1WTChz1wA/8tCPyHYZHU8raftwX92hiu4CwLMJfBUf 1ev1fKc4H73+lXqO437628JQjli1PNBX2FqtmPwWLCaq/obYF/rbO0W9nQJyntfrMi+VyNG3Vv Jj70jy1FckZWYAXQC+U1oBDf1gG8zhYK1smwIGMw6UlBFg==; 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=YnUvqRwzfxFmUAzZHwp7VqviFM+pYNv/Lv0Dm9FENCM=; b=hgS4hACrj9d4qroJsaBeOsJnXJ xyrGQWUbestEnIf+7OVSTResTfgEUelfatnag71HRVz19Y8qzKfx3WRrN0EdeaZneIcofdQZGC/M3 ld7cKsMB+7gq6Yf1VXDJC8GCWkjfqhrAjt0QC3Z7P5m9jGON9aQJ9vbWZQZ7ddy8Wr6YoJko6pqE7 Ipgu5xIKDSco06g1vUKSHtQhF0qieMdK+EO/JfiMmUPj8QCzyWH7Nh9PlUscABc5fl8GPhkj39HWN KpTDDLF0iBDXpLTV7kqpO2STzMt2eWkDKn8nYSXPXWfmNXgRqGGt26EJXIdzpVI2r2uJKtlgIQ73m R07wcK4w==; Received: from authenticated user by zero.zsh.org with local id 1nyz6d-000Pkg-SY; Wed, 08 Jun 2022 17:04:31 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ed1-f48.google.com) smtp.remote-ip=209.85.208.48; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ed1-f48.google.com ([209.85.208.48]:34810) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1nyz5b-000P2U-MA; Wed, 08 Jun 2022 17:03:28 +0000 Received: by mail-ed1-f48.google.com with SMTP id o10so27934231edi.1 for ; Wed, 08 Jun 2022 10:03:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=YnUvqRwzfxFmUAzZHwp7VqviFM+pYNv/Lv0Dm9FENCM=; b=fqjqU/Vo2BX1BytPhvdqj9euMhxhrvrgXGP11GcakfItIvljqplZICkDsXwFpMX9C/ iblpaCRVIRTa75SLkvYEfo9KFRJIoX4oOoCzfvz8jEnIOAZgZbl3NXNT5BxFCFAsR12M cbD5Kn3lWP/kuIGQ3XE/ILN0bulYi+bH7gSKGs/oT/3CFxwhzIhvmbIO0EfauP+bN1nT zI4RuRZ/hzR3Z7wPlP2FQASX6iCa+GkoMI9K0JnSLs2WxfXBnjsCKiA2FD6p7FO2BWAs m3MtG7kE8eAhdh/yr7lEAiQNcydk7yMT/8amxsNgX3AjAt7DpCOAk/ouzNO6S/mFKtBo tYSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=YnUvqRwzfxFmUAzZHwp7VqviFM+pYNv/Lv0Dm9FENCM=; b=7pPHp9eUohtVrhHyZk0qin1Y8SoIyUghLEYqcs1pB3/zmVB8qyJbD7ULL0Urmd/Mts qf2Tqne0Tf2FhNH/+ExNPlNCUZ7VOJmkayYtD4ES1c/1MIrsu1T/DJ/7XaahwSy8+OSK ufYDNW0/8v/WW1H2HwRHtcBBvfW71zdxyeL+RDT2WqP/5C0dNlr0ZfTBTWvz/ggz8p+e J9oc4ycQfs99tO/VCwLHvjL0rgcPi+7QZpyM0SrE2lwh3mAnqI0ewuiCCEFzXJgUXDnu XVtQP6V24vZbcicY8BaKw0KA7Vbb7y7F3HzgGuVQuZBVCvdimTvGzh2e4pgZOgkblKa3 JF7A== X-Gm-Message-State: AOAM533l8FJ9FjHNElLtEl+HU7P4KNDL26fszdClvAWoGrMPWAhrv/ur vSQBIO7zlrtxCm+LaFYFaJGL2/OzY0Ie1g/0lJCj0hjYzj0= X-Google-Smtp-Source: ABdhPJz+RM5Fs7l5NlBh1adTvLpb9Q9fttjKtSVPo5LC8uhmcVqLXOmFznixkyiGhkdXj9MNrihWrecE3kwuou2hFWg= X-Received: by 2002:a05:6402:4408:b0:42d:dc8d:a081 with SMTP id y8-20020a056402440800b0042ddc8da081mr40502981eda.69.1654707807382; Wed, 08 Jun 2022 10:03:27 -0700 (PDT) MIME-Version: 1.0 References: <20220607192350.znejys3gs4kakjw7@marcos.localdomain> <20220608165528.suhoqmhgo3qbkhq7@marcos.localdomain> In-Reply-To: <20220608165528.suhoqmhgo3qbkhq7@marcos.localdomain> From: Bart Schaefer Date: Wed, 8 Jun 2022 10:03:16 -0700 Message-ID: Subject: Re: Weird history behavior To: Zsh Users Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 27841 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: On Wed, Jun 8, 2022 at 9:55 AM Adam Cooper wrote: > > My reading of the docs tells me that (in the absence of /etc/zsh/zshenv) = ~/.zshenv is read first, and if ZDOTDIR is set there, the remaining configu= ration files will be read from ZDOTDIR. That's correct under the assumption that ZDOTDIR is not already exported into the environment, but if you export it, then everything is read from there by child shells, including $ZDOTDIR/.zshenv > (Moving .zshenv into ZDOTDIR resulted in zsh displaying a menu with optio= ns for configuring zsh from the start.) That's because zsh-newuser-install is looking for some comment lines in $ZDOTDIR/.zshrc > Evidence-wise, when I first log in to tty1, HISTFILE is set, as is HISTSI= ZE (conspicuously set to 9998), so I conclude .zshenv is being read. When I= then run startx to enter xmonad, HISTFILE is unset, while HISTSIZE remains= set. The only other configuration file, ZDOTDIR/.zshrc, is read correctly. This sounds like either xmonad is removing HISTFILE from the environment, or some /etc init file is doing so, and it's not put back because $HOME/.zshenv is skipped in favor of $ZDOTDIR/.zshenv