GNU bug report logs -
#36331
26.2; command run using dired-do-async-shell-command cannot take any input
Previous Next
Reported by: Prof Jayanth R Varma <jrvarma <at> gmail.com>
Date: Sat, 22 Jun 2019 15:14:02 UTC
Severity: normal
Tags: moreinfo
Found in version 26.2
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 36331 <at> debbugs.gnu.org (full text, mbox):
Prof Jayanth R Varma <jrvarma <at> gmail.com> writes:
> As a result, the original single command now becomes a background
> command (by the addition of "& wait") and it loses access to standard
> input (it is implicitly run with an empty standard input). If the
> command asks for a confirmation prompt or a password, there is no way
> to provide that input. A simple though somewhat silly way to
> demonstrate the problem is by comparing the following two commands run
> using dired-do-async-shell-command on a single selected file (say
> 1.txt)
>
> First command with "*" in the command line works as expected
>
> cat - * >2.txt
>
> With this command, the *Async Shell Command* buffer waits for us to
> type in whatever lines that we want. When we terminate the input with
> Control-D (EOF), the command concatenates the inputs lines with 1.txt
> and writes the result to 2.txt.
(I'm going through old bug reports that unfortunately weren't resolved
at the time.)
I can reproduce this, but I think that this works is more by accident
than by design. I don't think the `&' command is supposed to allow any
input to the command -- at least it's not documented to.
In this example, you can type in stuff in the *Async Shell Command*
buffer, and it'll append to 2.txt what you're typing, which is pretty
eccentric behaviour for this command.
Does anybody know whether this was intended?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 2 years and 363 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.