]> Sergey Matveev's repositories - public-inbox.git/commit
lei q: fix MUA spawn after reading query from stdin
authorEric Wong <e@80x24.org>
Sat, 17 Apr 2021 19:00:01 +0000 (19:00 +0000)
committerEric Wong <e@80x24.org>
Sat, 17 Apr 2021 20:16:33 +0000 (20:16 +0000)
commite002b3bef06e9b812e95f67fcf723a1aaf632dd7
tree0da3cc476c90ee17d015083f4c152b695fdc6692
parent74c0a24d49855321883f23decd687a1a866df24e
lei q: fix MUA spawn after reading query from stdin

Since "lei q" may read queries from stdin, we must reconnect a
known terminal before spawning terminal MUAs.  Attempt to use
stdout as stdin for this purpose, since terminal MUAs tend to
expect stdout to be a terminal.

Reported-By: Kyle Meyer <kyle@kyleam.com>
Link: https://public-inbox.org/meta/87v98klxg3.fsf@kyleam.com/
lib/PublicInbox/LEI.pm
script/lei