Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Anyone familiar with auto-fu.zsh project?
- X-seq: zsh-users 23477
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Eric Freese <ericdfreese@xxxxxxxxx>
- Subject: Re: Anyone familiar with auto-fu.zsh project?
- Date: Wed, 13 Jun 2018 09:27:56 +0200
- Cc: Peter Stephenson <p.stephenson@xxxxxxxxxxx>, Zsh Users <zsh-users@xxxxxxx>
- 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; bh=kQcCOH5Z7Ma+bLy/e951dO34R1qcUMQ0LE6gPA4sWnY=; b=d4AdVkRBwHezbg7F2JjjHs1os++tYk1ectWRGdtGI524bW84r7nDGzahUMPDVhzkP6 S1j63AfqjidMf4mZN8spheT1O1RC1GoT/pEjuRBMmQVue/BmOUL/AK1xIIHls1sDd7u6 xeIdLOy46exW36wc85u4uFlqZq1krS3203gp/lNYp8vo4qyUNtDf5/54HfoMcNeT8wON 3CvF2qHmxdoGiCGd1cgF4ieILglYFPQWJn8ZbsngkIMCvtp8nVXaiyitELj2RtiCB2Qm bwpLNMeQTsZTtI0c3tq718ceSc1TB2kqtoZxnvxKxmY0RcaU7SbjPPwcPeKb7rl1xbN5 Mf7Q==
- In-reply-to: <CAAikoAJYE=vyLUpwZcG4j85ENxqVVfRqDSFms1dOFUTzx52Pig@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVCu_L1Sgsp281KuvXUuMkkGvxs8D1dJAmVcBxm7RnJLwA@mail.gmail.com> <CAAikoA+iGXVQXGfRP-RepefEc+FAG0+brAVcPjp5p=969+j7Kg@mail.gmail.com> <CAKc7PVDe29JSCEeXU7F_dqG5a7TvfTz=sP3=4nDLOm1jQOxFnA@mail.gmail.com> <CAAikoAK3SdfCmK=sEpfG=DP2dEvcVL1V-rw1hRiQLGzuvE=ZvA@mail.gmail.com> <CAKc7PVDYO6qfraO_Xdgiu+CRemZPRMUnerThxNM9jx53KPGTRw@mail.gmail.com> <CAAikoAJdJ-K-QCuKXn_i5FQFNDgYwJwFD8wbqGe5syNeyQUNxA@mail.gmail.com> <CAKc7PVAqDeV_Pnkx6rHeYGwT9f+M+LT9Qp0MBkoLkAcarF-BLg@mail.gmail.com> <CGME20180612015719epcas5p34a5f79f58e821488853b6a7eceba7ec8@epcas5p3.samsung.com> <CAAikoA+93yDK4F-=ogf8HpheVeLG59LeeHGEgk4dCURoGhFZfw@mail.gmail.com> <20180612113257eucas1p2342f735bcea27bb1009aee1b23c682f0~3ZmPbMrh61839118391eucas1p2G@eucas1p2.samsung.com> <CAAikoAJYE=vyLUpwZcG4j85ENxqVVfRqDSFms1dOFUTzx52Pig@mail.gmail.com>
On 13 June 2018 at 06:09, Eric Freese <ericdfreese@xxxxxxxxx> wrote:
> It just occurred to me that, with zsh/system, I can have the child process
> send its pid as the first line of output.
>
> Something like:
>
> ```
> % zmodload zsh/system
> % exec {FOO}< <(echo $sysparams[pid]; sleep 100; echo foo bar)
> % read childpid <&$FOO # Get the pid, stored in $childpid
> % cat <&$FOO # Handle the rest of the output
> ```
Cool. <() processes are fun, such tricks make a day. I wonder if
someone has some <( ) tricks up in sleeve, broadening of horizons
might result in better code or even architecture.
--
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author