Re: execline-in-execline

From: Profpatsch <mail_at_profpatsch.de>
Date: Thu, 07 Jun 2018 17:59:47 +0200

Laurent Bercot writes:

> Remember that once an execlineb script has been parsed, it's just a
> command line, no more, no less. So your example script can just be
> written as:
>
> #!execline
> define url example.com
> s6-tcpclient $url 80
> foreground { fdmove 1 7 echo -en "..." }
> fdmove 0 6 cat
>
> No second execlineb invocation necessary at all. No quoting
> nightmares.

Ooooooh, you are right!
It’s even more elegant than I thought!
Nice.

-- 
Written with Emacs (mu4e) on NixOS.
Q: Why is this email five sentences or less?
A: http://five.sentenc.es/
May take up to five days to read your message. If it’s urgent, call me.
Received on Thu Jun 07 2018 - 15:59:47 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:38:49 UTC