GNU bug report logs -
#41788
28.0.50; emacsclient -t doesn't work with vipe from moreutils
Previous Next
Reported by: Platon Pronko <platon7pronko <at> gmail.com>
Date: Wed, 10 Jun 2020 13:20:01 UTC
Severity: normal
Found in version 28.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 41788 <at> debbugs.gnu.org (full text, mbox):
Platon Pronko <platon7pronko <at> gmail.com> writes:
> $ echo a | EDITOR='emacsclient -t' vipe
> *ERROR*: Could not open file: /dev/tty
> emacsclient -t exited nonzero, aborting
>
> (vipe is a tool from moreutils, used to insert an editor in the middle of
> the pipeline)
>
> Looking inside vipe source I see that it reopens stdin before calling
> the EDITOR:
>
> close STDIN;
> open(STDIN, "</dev/tty") || die "reopen stdin: $!";
>
> If I use for example nano instead of emacsclient -t then everything works correctly.
(I'm going through old bug reports that unfortunately weren't resolved
at the time.)
This problem is still present in Emacs 29. Does anybody understand
where the misbehaviour between this STDIN redirect and what emacsclient
is complaining about can be fixed?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 2 years and 338 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.