From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8197 invoked by alias); 31 Jul 2018 13:55:03 -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: 23549 Received: (qmail 9503 invoked by uid 1010); 31 Jul 2018 13:55:02 -0000 X-Qmail-Scanner-Diagnostics: from mail-wr1-f49.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.221.49):SA:0(-1.9/5.0):. Processed in 2.692967 secs); 31 Jul 2018 13:55:02 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_PASS,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: luomat@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=idjiWw2bu+oMTDT0mvCNKVcL3zPHU+GFjlMVZZ9EAr4=; b=Ry1VQWqwVOK7rChHyT5/g66mmCxYr2FsBpHlMpyFXLkqY1goTx76xu2uHH1hlgtsYK VV7FZbQYSReuJJlsz5orwaOuw7TJ7cOfWvvY+RbHb503RCLXWyVN//PmAnXVRjSe+ysv pm2XPlD1OFbaGe0OlURfVaLg/MFC1hcOYaDi5JKb64eqCtdvgOWifxqmMwUdnVpv0j6Y sG1TXWK/IXjgy9Ed40mYD3VqnWeqDayr7ZlgUHTdfxoeikx94yeIxUoUAiLwkBATnMOZ 3EpPiNdgF4TKeFu9R/mma5W3HiCaF2UqK2GeUWi+RdC0c40SNq2RJg9IJHDXO4gc2QPW sHkg== 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=idjiWw2bu+oMTDT0mvCNKVcL3zPHU+GFjlMVZZ9EAr4=; b=HceEpQgWfvCnboma7pfW05zloD+CV7JpkuwifSCh9f9/sJ9BxGkrbzd5Bh0e9da3Tk NgOcNuRndHXI2X9w8OOIPhf4fHBEhvNFFavVP+5miU8gMYlSZ+1VxSYzLmaenS5Trd6m cabU1yYOCngpNyDuY/fO3v74mDeVzVES79gEDHk0arAQ8/DYrCuMYzbXT+JFoiKAxcSj Xuzs9rjws190xwxsM7rbrtD/McYaieTWZA76GrOdxlPuuvG0SDtXpa7a9dbp7QnUb6py 7Axrc9/BbhFo38o2ZmyH8j+ScR6lBawav5HcQck8ITgmB09CJC4M+2RqhnKKSUnlFV7a 1EIg== X-Gm-Message-State: AOUpUlHGD7bv0c7Y5RXERDtLD8DFZ+mdEt9R92O0c5S62p70UKyWdgxq c1D/wEFAxOQFV81zvsrA7+ktLCjaMfPULjTNvj+0xg== X-Google-Smtp-Source: AAOMgpeFRK94ZWfx278P3xeU/sZpwboa/YHuyr1l2lhbQ/AYrZAL16+kVdtwp3ePcwYMNIgA2kc52/RqBMyBkO/yW4w= X-Received: by 2002:adf:9aeb:: with SMTP id a98-v6mr20649030wrc.110.1533045295655; Tue, 31 Jul 2018 06:54:55 -0700 (PDT) MIME-Version: 1.0 References: <20180729153250.GA63277@CptOrmolo.darkstar> In-Reply-To: <20180729153250.GA63277@CptOrmolo.darkstar> From: TJ Luoma Date: Tue, 31 Jul 2018 09:54:18 -0400 Message-ID: Subject: =?UTF-8?Q?Re=3A_Is_there_a_way_to_get_the_=E2=80=9Cfull=E2=80=9D_time_zone_c?= =?UTF-8?Q?urrently_in_use=3F?= To: Zsh-Users List Content-Type: multipart/alternative; boundary="00000000000045b21e05724bec9d" --00000000000045b21e05724bec9d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Wow. That=E2=80=99s excellent. Another Zsh feature that I clearly need to l= earn more about, because I use =E2=80=99sed=E2=80=99 for that sort of thing _all= the time_. Thanks! TjL -- TJ Luoma TJ @ MacStories Personal Website: luo.ma (aka RhymesWithDiploma.com ) Twitter: @tjluoma On Sun, Jul 29, 2018 at 11:32 AM Matthew Martin wrote: > On Sun, Jul 29, 2018 at 08:56:21AM -0400, TJ Luoma wrote: > > That works, and I haven=E2=80=99t found anything else that does. This: > > > > readlink /etc/localtime | sed =E2=80=99s#.*/zoneinfo/##g' > > There's no need for external commands here. > > a=3D(/etc/localtime(:A)) # Resolve the symlink > print ${a##*/zoneinfo/} # Remove text preceding and including /zoneinfo/ > > - Matthew Martin > --00000000000045b21e05724bec9d--