Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Anyone familiar with auto-fu.zsh project?



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