GNU bug report logs - #76888
31.0.50; start-process: Spawning child process: Invalid argument

Previous Next

Package: emacs;

Reported by: Richard Copley <rcopley <at> gmail.com>

Date: Sun, 9 Mar 2025 12:39:01 UTC

Severity: normal

Found in version 31.0.50

Fixed in version 31.1

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 76888 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Richard Copley <rcopley <at> gmail.com>,
 Michael Albinus <michael.albinus <at> gmx.de>
Cc: 76888 <at> debbugs.gnu.org
Subject: Re: bug#76888: 31.0.50;
 start-process: Spawning child process: Invalid argument
Date: Sat, 15 Mar 2025 13:48:10 +0200
> From: Richard Copley <rcopley <at> gmail.com>
> Date: Sun, 9 Mar 2025 12:37:56 +0000
> 
> When the "*Async Shell Command*" buffer is re-used, its
> connection-local variable 'shell-file-name' is set permanently instead
> of temporarily, and if the value is inappropriate, an error ensues.
> 
> Recipe from 'emacs -Q', on Windows:
> 
> Visit a remote file on a Linux system using tramp. (You will need to
> substitute an appropriate remote file name here.)
> 
> [C-x C-f] /plink:xxx:/ [RET]
> 
> Execute an asynchronous shell command.
> 
> [M-&] echo [RET]
> 
> NOTE: (with-current-buffer "*Async Shell Command*" shell-file-name)
> returns the path to "cmdproxy.exe" as expected.
> 
> Execute an asynchronous shell command again.
> 
> [M-&] echo [RET]
> 
> NOTE: (with-current-buffer "*Async Shell Command*" shell-file-name)
> now returns "/bin/sh".
> 
> Visit a local file.
> 
> [C-x C-f C-a C-k] C:/ [RET]
> 
> Execute an async shell command.
> 
> [M-&] echo [RET]
> 
> An error is signalled, with the message "start-process: Spawning child
> process: Invalid argument". (Note, the invalid argument is the
> executable name, "/bin/sh").

Michael, any comments or suggestions?




This bug report was last modified 55 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.