From: Thierry Volpiatto <thievol@posteo.net>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 50209@debbugs.gnu.org
Subject: bug#50209: 27.2; eshell-command not working async
Date: Fri, 27 Aug 2021 05:46:41 +0000 [thread overview]
Message-ID: <871r6fph7d.fsf@posteo.net> (raw)
In-Reply-To: <87sfywz3dp.fsf@gnus.org>
[-- Attachment #1: Type: text/plain, Size: 1588 bytes --]
Lars Ingebrigtsen <larsi@gnus.org> writes:
> Thierry Volpiatto <thievol@posteo.net> writes:
>
>> When running a command in eshell ending with "&" the command should not
>> block emacs, it should run asynchronously.
>
> Do you have a recipe to reproduce? I tried
>
> emacs -Q
> M-x eshell RET
> sleep 10 &
>
> and it ran that asynchronously.
Yes, that's work, now do:
M-x eshell-command
sleep 10 &
Debugger entered--Lisp error: (error "Format specifier doesn’t match argument type")
format-message("Unmatched delimiter: %c" #<process sleep>)
apply(format-message ("Unmatched delimiter: %c" #<process sleep>))
error("Unmatched delimiter: %c" #<process sleep>)
eshell-eval-command((let ((eshell-current-handles '[nil (t . 1) (t . 1)]) eshell-current-subjob-p) (let ((eshell-this-command-hook '(ignore))) (condition-case err (eshell-do-eval '(prog1 '... '...) nil) ((debug error) (mapc #'funcall eshell-this-command-hook) (eshell-errorn (error-message-string err)) (eshell-close-handles 1))))))
eshell-command()
funcall-interactively(eshell-command)
call-interactively(eshell-command record nil)
command-execute(eshell-command record)
execute-extended-command(nil "eshell-command" "eshell-comm")
funcall-interactively(execute-extended-command nil "eshell-command" "eshell-comm")
call-interactively(execute-extended-command nil nil)
command-execute(execute-extended-command)
Sleep is later executed, if you wait 10s you have the result, but the
error prevent running properly the command programatically.
--
Thierry
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 686 bytes --]
next prev parent reply other threads:[~2021-08-27 5:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-26 9:20 bug#50209: 27.2; eshell-command not working async Thierry Volpiatto
2021-08-26 14:28 ` Lars Ingebrigtsen
2021-08-27 5:46 ` Thierry Volpiatto [this message]
2021-08-27 15:01 ` Lars Ingebrigtsen
2021-08-27 16:00 ` Thierry Volpiatto
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871r6fph7d.fsf@posteo.net \
--to=thievol@posteo.net \
--cc=50209@debbugs.gnu.org \
--cc=larsi@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).