Laurent Bercot <ska-skaware_at_skarnet.org> writes:
>>I haven’t found a way to print a file to stdout with either
>>execline nor s6-portable-utils. The `s6-cat` utility only
>>echoes stuff that is already coming from stdin,
>>and unlike the shell, execline doesn’t have `<`.
>
> https://skarnet.org/software/execline/redirfd.html
>
> "redirfd -r 0 $file s6-cat" will print $file to stdout.
oooh, that’s a powerful command. Dunno how I missed that,
I think I was too focused on finding something less general.
I think I might start writing a FAQ for these things.
--
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 Jul 26 2018 - 12:30:51 UTC