Subject: Re: Config from stdin

From: Sergey Matveev <[email-masked]>
Date: Sun, 28 Sep 2025 12:12:19 +0300

Greetings!

*** Emery Hemingway [2025-09-26 08:50]:
>A simple feature with a lot of potential value would be to support
>passing nncp configuration on FD0 when the path is "-".

Looks pretty useful indeed!

I have added it in the 8.13.0 release, but implementation differs.
Instead of passing "-" you pass "FD:x", where "x" is the desired opened
file you fed your configuration to. With "-" and forced stdin you won't
be able to use commands that already read from stdin. With FD:x you may
pass ordinary data to stdin and configuration through separate
independent file. "NNCPCFG=FD:5 nncp-cmd <data 5<cfg"

-- 
Sergey Matveev (http://www.stargrave.org/)
LibrePGP: 12AD 3268 9C66 0D42 6967  FD75 CB82 0563 2107 AD8A