Re: execline-in-execline

From: Laurent Bercot <ska-skaware_at_skarnet.org>
Date: Wed, 06 Jun 2018 22:01:38 +0000

>```
>#!execline
>define url example.com
>s6-tcpclient $url 80
>execlineb "
>foreground {
> fdmove 1 7 echo -en \"…\"
> fdmove 0 6 cat
>}
>"
>```

  I have trouble understanding what you want to do in the general case,
because in this example, s6-tcpclient takes a whole command line, so
you do not have to call execlineb again.
  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.

--
  Laurent
Received on Wed Jun 06 2018 - 22:01:38 UTC

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