From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 6cdc9f30 for ; Wed, 10 Apr 2019 17:26:22 +0000 (UTC) Received: (qmail 29 invoked by alias); 10 Apr 2019 17:26:05 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 23925 Received: (qmail 18457 invoked by uid 1010); 10 Apr 2019 17:26:05 -0000 X-Qmail-Scanner-Diagnostics: from mail-io1-f54.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.1/25412. spamassassin: 3.4.2. Clear:RC:0(209.85.166.54):SA:0(-1.9/5.0):. Processed in 1.680871 secs); 10 Apr 2019 17:26:05 -0000 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.166.54 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bAzmVowvcGwz14QiujZS1XTV9G4jfo5HwkSymgFlK5U=; b=Oa0OhqNu23L+WC7Cz5EE4XrrLC1vnPc4idHukEPk7y5ITZeGQtTvxL5R1uJCMfapZ3 s9k2veyiWMeFOxbdyQvVyMvK8AkHcspXck6wTP4MUMxFxmaEXuM3R+AtnJNJJ6nRO9UR hbBhUp2GAeBf1YKGWH1q/jWoIZnOyKYrL+oaKW7asUy2EGunMR9Dr8NthRehRmIK2eol qlJk45mnuqxo1FJcwKi586RtLa/yYEtLuCTh4qOWpYGQ0zwRuxNYE++7vA3XaNDDPSng CKR63V0CZ9Y5M1hj4nA6ADu5LwWboa0+TQ6nHhF/hyeHl+VFRNXjrhRD8NVzgHAnnri9 pgSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bAzmVowvcGwz14QiujZS1XTV9G4jfo5HwkSymgFlK5U=; b=cTfKtczjA1fQbF8N+vAl9E1MgfMQcWiQdtg7fP4QFvNXcEWoU/LfSQyp5kYlM24KHP UZicgyvKEZp0IcjXr11NP8++U5PrNikZgsYuvJL+OIvWiemABB9fHMFlIlnugDGbc3w2 3PtQcLrDr41KaJQOIIb+uQWwxnW9TQuge38cjoYgv/Ww6G9lgoU1xoPt9qYzo1uRQou5 n0xmxR4kFiZUZI2bJF58BiDZqxEvAfoQJ33+iS+jZiBWSr4Gs2U0xaAN1zfVefEyEXMF ntf57tAH/qfijkV5XI/MzMCtWmHj1UuxuPH4DkDe5TI68yhsD00vWDoWCE49YhjZBbZg hZTQ== X-Gm-Message-State: APjAAAUCwzmCuXWvdJ9UC0CvH6hYD4TkTPLoCIhD4XothFcfR/vo+DSS lRtum+TZwpehyQu2zL0nLC+1qkCHqhSVEUjubdS/hQ== X-Google-Smtp-Source: APXvYqynf6csSlPaNzm0UeB3tbvoUlYtQu/jaVF3bM5JOy0tdq6VSyQzZ458SXwOHEEiNOYadfzF/ehT9cLISitxKyY= X-Received: by 2002:a5d:9159:: with SMTP id y25mr30534159ioq.146.1554917129977; Wed, 10 Apr 2019 10:25:29 -0700 (PDT) MIME-Version: 1.0 References: <20190410125557.GA19114@cventin.lip.ens-lyon.fr> <1554902053.6252.6.camel@samsung.com> <20190410141113.GD15169@cventin.lip.ens-lyon.fr> <1554907186.6252.12.camel@samsung.com> In-Reply-To: <1554907186.6252.12.camel@samsung.com> From: Bart Schaefer Date: Wed, 10 Apr 2019 10:25:18 -0700 Message-ID: Subject: Re: print builtin preceded by parameter assignment To: Peter Stephenson Cc: Zsh Users Content-Type: text/plain; charset="UTF-8" For what it's worth, Bash seems to (mostly) agree with the zsh interpretation. If I set HISTTIMEFORMAT to something containing %Z and then run "TZ=UTC history" I get timestamps in the local timezone, not in UTC. If I first export TZ=UTC and then run history, I get timestamps in UTC. *However*, if I run "HISTTIMEFORMAT='%r ' history" the change takes place for the builtin and I get the different format. So it seems to matter whether the variable itself is "known" to Bash, or something. In neither case does the assignment persist in the shell after "history" is done executing.