Re: execline-in-execline
As a matter of example : this scripts "rewrites" its final command depending on optional arguments. Its purpose is to restore select parts of the environment variables, uid/gid and working directory, that were saved in a directory at some point in the past. https://github.com/Adirelle/s6rc-overlay/blob/master/src/sbin/with-contenv Maybe it is pushing execline a bit too far but I didn't fell like coding it in C (which I do no master). Le 07/06/2018 à 17:59, Profpatsch a écrit : 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. Ooh, you are right! It’s even more elegant than I thought! Nice.
Re: execline-in-execline
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. Ooh, 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.
[announce] utmps-0.0.1.0
Hello, It's been there for some time but there's now a release number. utmps-0.0.1.0 is out. It's a secure implementation of the POSIX utmpx.h functions, using daemons to access the utmp and wtmp database instead of imposing suid or sgid on applications. It still needs a lot of testing. https://skarnet.org/software/utmps/ git://git.skarnet.org/utmps Enjoy, Bug-reports very welcome. -- Laurent