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 fc19f1c1 for ; Thu, 11 Apr 2019 20:59:43 +0000 (UTC) Received: (qmail 14711 invoked by alias); 11 Apr 2019 20:59:25 -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: 23930 Received: (qmail 6059 invoked by uid 1010); 11 Apr 2019 20:59:24 -0000 X-Qmail-Scanner-Diagnostics: from mail-it1-f181.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.181):SA:0(-2.2/5.0):. Processed in 2.39968 secs); 11 Apr 2019 20:59:24 -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.181 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; bh=0hFFoT6gtzY9c9hl58FLe+f6SQmJC6Sgtr66fl1oI+8=; b=fHBGXXKQHJRUt3TjJpbLVf7QZYGTbYK1fRlpa5AxalJiRGChVYSm+S0hfyUH1NOlYY 3xTbiAcqhC1Uzjgqws71Nau4p2Uws9nWLDbv7hAXKNb4x0OZTamIEHika1OAFzeLoC7+ RbOtXelVsxqFII8tvZuPzQudCgJ5c+2ATqFVEbebqsSeffOfp4GS7AskJeZowOperk0J 9zpvR6M+D3R5zWs7YHxyCiuFAvq6H97MSkXHYwTXgi18UzpUD8Ye+IH7M5MxZXz65F3w TcJvc8I435552VWViNUDCpNghoydJDetmm1SLMvaFJAKAcNPJcFyF0aO8WZNLsfz/JIt GcNw== 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; bh=0hFFoT6gtzY9c9hl58FLe+f6SQmJC6Sgtr66fl1oI+8=; b=ZHVhiQRbquODUEZai9YXwFkKXTUMOuKN7KLQF6ZTIXGRshM3/Q8T0h4AAayA+he64I EX9Db0fBA1WClTfdtCnJGYtS5Xrjwy7GGWqvfX4bcbGcYbbc3MlDeW6YpeWleeaLzA76 iJM5muaylE7Wrac4J+du8nHb0/giiRJrB+Qhne01U6px+PYZp/3qT29X210NMnbWdDUL 3jGzDWfQO/eLufFmbVx26eHQbd9Ulhco7gtzyBNlgQ8F/BVWLW9TS89FVT8AgBjt4t9y x7faCgFJf67Eohdt1A9VjzWw+V49hmj1txsbm0wpKEtbFYTn2Kd+RMhTfo+nOrhkvBcS RWvw== X-Gm-Message-State: APjAAAUJAZvjZES9INBm1uPHDknimIE/MO3t6OAnJJjJPl4gP8szDyXb VWaij/KYyuK9DCD/7NR9a5BWIm5rHjfCzO/ShIq10uvisLo= X-Google-Smtp-Source: APXvYqyE2lBWWHX8JY+pZOY7YbajRMwcZmS58xqPXxeUM1wPLnBXbhqFywLemIFt8TEWdDR0w+R9Q3codxVOibejnxk= X-Received: by 2002:a05:660c:111:: with SMTP id w17mr10205845itj.62.1555016328115; Thu, 11 Apr 2019 13:58:48 -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> <20190411104040.GA29775@cventin.lip.ens-lyon.fr> In-Reply-To: <20190411104040.GA29775@cventin.lip.ens-lyon.fr> From: Bart Schaefer Date: Thu, 11 Apr 2019 13:58:36 -0700 Message-ID: Subject: Re: print builtin preceded by parameter assignment To: Zsh Users Content-Type: text/plain; charset="UTF-8" On Thu, Apr 11, 2019 at 3:42 AM Vincent Lefevre wrote: > > On 2019-04-10 10:25:18 -0700, Bart Schaefer wrote: > > 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 > > Your test seems incorrect. My bash version is 3.2, so this changed in 4.something. The actual takeaway here is that TZ has to be pushed into the actual environ strings, not just set temporarily as a local to the shell, in order for the system time libraries to apply it to strftime et al. Most other variables used by shell builtins would not have this property.