From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5116 invoked by alias); 13 Jun 2018 10:48:56 -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: 23482 Received: (qmail 23381 invoked by uid 1010); 13 Jun 2018 10:48:56 -0000 X-Qmail-Scanner-Diagnostics: from mail-ot0-f171.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(74.125.82.171):SA:0(-1.9/5.0):. Processed in 0.993051 secs); 13 Jun 2018 10:48:56 -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, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: sgniazdowski@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:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=LcW6PaTb149KtvZV+cnS1eyZUbpT1n7D6A305csZl8g=; b=IcioGjFnD/9/UVMFwR+CU6OkxkO1TBtyKzC5RPFcxA8gbVIbtzIWPXqTbKi4x2EG6t IruIcXWSyWfiK/paQVzm+hsAONVbvO7LagA7nj1voO7LvJcPwqH80pJYR+PFF5/Ml4fW T2DHMIek/EpdASYHxQCJMwtwnyyHuepsdnZghDmbLwG50ITcAv82T/EhUrunntEB26CU l0zHucRO1uE2qwWfkBvzRV/r5tTYdK/d4wx72Knpi7jbKW3hOz3yAbBN1UV+Va6Po9bN jQ5poN4uO/sElNzVX3Li67IOIpFoA3o2Kzu+AMq5QHgJdCqtt67Gur95pypUXFH78qrX C2LQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=LcW6PaTb149KtvZV+cnS1eyZUbpT1n7D6A305csZl8g=; b=ezIUlpxMvwnlO4CinJdBm664iAdKCOFZad9rB+FyvgrGPNaapbTowRNItiK7WQCrxh LLa7iGwrHcteLGJjMFme37B8ajbpa8+labVt8FEtPpra8wk56TY5O+Jkm46HsWxCSKmm wKc7F2gYUt2eu88xwV07SOBISUYMh8fFKL1BbA+iqQ6mB8IjwA2ExyDbBk9zNiFPFR4z sKYGEMP4XkQyQM+akJH1ot8IxRmNTyheKhxkxkYuhq1rt/qNot6EVtEsVCGzNFzn3j/Z gVEEx1hn5ZFI1xhsVnCGHaB10Z/rbXqf69tNACWLTwMm/YoeqYt3MMgAuBACKS6uLxqv jztw== X-Gm-Message-State: APt69E3+ec9fTZ+Hp21dMrF3UBEXLPC+diDEd8BIkxW2FhNfM4+fJtdi 3ckaMuzaxg969FcHv9w35qMVh5GPJQzMKjlgLRg= X-Google-Smtp-Source: ADUXVKLJXsBz7bWpHdgHpFK8kRB/Kj8AbB6IPLv0eRTPMikUyRRll3UUz8UMDJybP2tgA0Tl2wb5CtXHcagWTHkgeFg= X-Received: by 2002:a9d:704e:: with SMTP id x14-v6mr2973427otj.287.1528886933284; Wed, 13 Jun 2018 03:48:53 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <509610AF-065C-4D55-B353-CDDE6E85176C@dana.is> References: <20180612113257eucas1p2342f735bcea27bb1009aee1b23c682f0~3ZmPbMrh61839118391eucas1p2G@eucas1p2.samsung.com> <5DD9F0D4-8348-4707-AE6B-1D47AE58FD2D@dana.is> <509610AF-065C-4D55-B353-CDDE6E85176C@dana.is> From: Sebastian Gniazdowski Date: Wed, 13 Jun 2018 12:48:32 +0200 Message-ID: Subject: Re: Anyone familiar with auto-fu.zsh project? To: dana Cc: Zsh Users Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On 13 June 2018 at 11:17, dana wrote: > On 13 Jun 2018, at 03:28, Sebastian Gniazdowski = wrote: >>Wonder why ":" is needed, to gettpid be not the last command. > > Presumably because zsh optimises out the fork() for the last command. But how to run a binary without forking first? I would have to be `exec getppid`. > Anyway i don't actually think you should use that, lol. If you really don= 't have > zsh/system you should be able to use ${${:-/proc/self}:A:t} on Linux (and= NetBSD > and Solaris). I bet that covers 99% of users =E2=80=94 i doubt many peopl= e are using > static zsh on Macs for example. Procfs is nice but lives in a word of cats, echos, ls -l =E2=80=93 I mean, it's a world of text, files and symlinks. IMO it is good to allow users cat etc. it from interactive command line, but for short programs, it's like taking away coherency from them, they have to open a channel for this file tree, I feel this is unstable. --=20 Best regards, Sebastian Gniazdowski