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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Richard Copley <rcopley@HIDDEN>; Done: Michael Albinus <michael.albinus@HIDDEN>; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
bug Marked as fixed in versions 31.1. Request was from Michael Albinus <michael.albinus@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
bug No longer marked as fixed in versions 30.1. Request was from Michael Albinus <michael.albinus@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 76888-done <at> debbugs.gnu.org:


Received: (at 76888-done) by debbugs.gnu.org; 27 Mar 2025 16:51:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 27 12:51:09 2025
Received: from localhost ([127.0.0.1]:51089 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1txqRg-0005Al-TV
	for submit <at> debbugs.gnu.org; Thu, 27 Mar 2025 12:51:09 -0400
Received: from mout.gmx.net ([212.227.17.21]:46897)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <michael.albinus@HIDDEN>)
 id 1txqRc-00059t-6E
 for 76888-done <at> debbugs.gnu.org; Thu, 27 Mar 2025 12:51:06 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de;
 s=s31663417; t=1743094242; x=1743699042; i=michael.albinus@HIDDEN;
 bh=Vg360E37wWjwforfbS3jGQMi1u9oxPGXkqGazkSntLo=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date:
 Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding:
 content-type:date:from:message-id:mime-version:reply-to:subject:
 to;
 b=uIgFSWVptoIahJAKqtGxkyzTZvTB1Kb3nJ1APQXgNaYujwtcOwc7aWeMKmygrbim
 M1NH5TTA/XFNeFSNg4ji6Y00c4/SBn0inss00FIjYWNQ8MpeFv8IbD2Yry52N9rGC
 /7DvwCv/vxgx4qg0rMcSrQqDPhtZ7z+7KWrkkzTdy0mxCHBtLLYp6VA8b+8QZCV/f
 XEjH9WzJe3f5EQtgDV6S87raaG7HnhddpRk1aZEOpwFaPRsZtY6Je5lqS6v72eDeG
 iXqIweb0+fuSpAm6dgiYYqu1WlLL/6YyQQgbRceze06aSP4x3gWjb1s+5M+qLbOcZ
 lSpVcx09wrqd/PC7pw==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from gandalf.gmx.de ([185.89.37.59]) by mail.gmx.net (mrgmx105
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MF3HU-1tvhm626bw-003ilL; Thu, 27
 Mar 2025 17:50:42 +0100
From: Michael Albinus <michael.albinus@HIDDEN>
To: Richard Copley <rcopley@HIDDEN>
Subject: Re: bug#76888: 31.0.50; start-process: Spawning child process:
 Invalid argument
In-Reply-To: <CAPM58og91fKHK5-6+gQvW3Cqfbh3mxjGDgUe5VvN2ehxdownKw@HIDDEN>
References: <CAPM58oj1z5ZWit1NzDqjZ8cEqYhXfVes5XjT-4-i1okpJca1fg@HIDDEN>
 <86wmcqwm4l.fsf@HIDDEN> <861puxv11i.fsf@HIDDEN>
 <CAPM58oh9sZZq_tpa6p3pvp6YDAFAND_qEpTpg1hgvFGC1D3Lvw@HIDDEN>
 <86wmcptkcf.fsf@HIDDEN>
 <CAPM58oikr4g020whjtq9U1gajs5LDYsBvhMkuK_gY7i6GxJx5g@HIDDEN>
 <86v7s9tgqx.fsf@HIDDEN> <87frjcuj3k.fsf@HIDDEN>
 <86frjbsp25.fsf@HIDDEN>
 <CAPM58ogQXdM2NE87-eBKinqB4Ac+5oA41xD8h3LNCYeTjV6+2Q@HIDDEN>
 <874izhnu9s.fsf@HIDDEN>
 <CAPM58ogYgWyLSw3FjbOySybUXR0-HmYEv45qtGRsz8cTkUcuYA@HIDDEN>
 <8734ey7mm0.fsf@HIDDEN>
 <CAPM58og91fKHK5-6+gQvW3Cqfbh3mxjGDgUe5VvN2ehxdownKw@HIDDEN>
Date: Thu, 27 Mar 2025 17:50:41 +0100
Message-ID: <87o6xm5sf2.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:f9iAwaXNKsdSOQ7rMbl1P0eINFkwl1ddBThsKyGequuqB1TzPC+
 BuyIFhZJkfJN1Kt2N0UER7hDvB0L8faFMZ5N9apk3apa1k/1FAADEt5ow2Wb7nErBm6Azcq
 +dbRcDXSMAV9f2JSkhOFJm2/e72xGzw1g3q3HAKiH8Xz1yWK1gER/eOkobSuHAg+AUCCsNA
 lDSSqtOp9CcViJCCJZyfg==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:AzOO2sOOKZ4=;X9+3LSSFosB1EoTtFL05udRkJLL
 YQ4TKoBqXvq8dZ1MKUA3y6cyXleBco0pZgoMAQ1GUzRl3r2XTxv4gxqeqShcWl6YueEeaLdHX
 fcSVUiX3b2qrPAgNMEAODlUQfPgfmKu+/YYITmkIT6tFeoStwHPKGfCLZelX10GRH8lieiE7U
 +demB2XYOBEl0IgZxxlG9sYlZBgaCFtKkqetPSboZMEnfgn1rXThNk48knDikTrgrrbu307pI
 Wvg5G3Ll4g11sAFTkMwTaIa/1cK4n+UfugotP2MFvF14BQAG+WZUqdyZJvNbwreTl3t42nMUL
 ngne0cHvT4oJbJ2yl+xaTozVQSIxMgKQVJEIJ5SrCIQHQilryILYDfhm/KwGtjj7czfmGIQDn
 jydxCzxwgPwPZGRn6B5DxhXWanQsUbvrdiwILKFSe7KFlcUf58tAPkLiZfZUMaLxyRl2sMCGM
 Okjq74aZmvsfvIKWKWtRgnpkpqttIapD3RNiIG8Hxc1i6sY3c0q8ajwCTKRMT0wGCW1rv32ij
 fqjH8w5+zLTcet0UgPK9xjrFDQSu6mAeaflJq0OTLIy/9fYe7kRKfNqhn9S4bC58h4LhmqOyO
 4BARKfnT0LzaOKb6t3vdVpTo6NET7x8jWJSNqhRSp2JGJa2dETNWR+k2ToTGWzj68U125Dnrx
 amIf0U0HYIdp2HSj2vRzPJ+FjTMugF02Y9hjJAKQBqCctWBhtywvO37LR5F0Zb2u/8qZxeq8s
 6z7snLUxycA1KOb4R0qslpQph2wqrOOXJfd+iwjdvmUteqdG1jDh7lKqIFANP10ArOKKTmvXN
 s+DOlmicxb/r06fY0PguvTE1Y4gcCRTDEdEY10pEKPych9voFMtE8/N17vMXQjUmRnrrFc1DD
 rmdl2m8m+6rcVyzXzzOTd+sRJaap8G3d0ubpXayaIk7VSowM0+yuhft35gx4HRgnJMVedSRPS
 XjUb75wYS+07f1Ys3h23Gm0cX4h10iIwBgqCcRgZvTiJaX0NLWH22lpLSPU+eEp8a9JaLyhaQ
 90ReMu+EQKVjfTcb9xKyZ5EJIXh2aU5p2m1B+bbxtghBXKSFYdiQARPxor3TwgOJyPwr8GO6D
 2gLA+4dV38cweAE5wbiIki04t+EVKty/KiXvo2fi9yM5sZc3YuUOBDZ9RjBOH+SDQFU+3q423
 rnBdx1vOq5P6kh/J+T6CC06NXkAUpGAsw+MkqbPbL80NHg8uB1PSKvjDefpC6rAGl/HpeCnDu
 zx0ZSnWEIj5VxhIWU33ViOCTt5nxCYoDCS08isTvae1dVDqgTWls1XV6uKgHb2DndSzrUvd/M
 Yskduh17U+sibUAi/VfzMrbsHHoxg7UznBAyBKcsIJpzl2A5eDHtaJHZWYfIRuAX2sYl4XO//
 OMoiXcRyA05PgoUhJMj+qt3T0uUtcC9+/nVwNyo81dV/hw+UALhM3k0uGdJ1cwVYA+rdWNXjD
 yDVLhLUSLY1YJcuvICVp6lQhES3E=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 76888-done
Cc: Eli Zaretskii <eliz@HIDDEN>, 76888-done <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Version: 30.1

Richard Copley <rcopley@HIDDEN> writes:

Hi Richard,

>> However, connection-local-value does not work as I've hoped. It simply
>> uses the recent (buffer-local) value, if default-directory isn't remote.
>>
>> So we must kill the local value(s) explicitly. The revised patch
>> (appended) seems to work. Tested on my Windows 11 VM with your recipe.
>
> Yes, that works.

Thanks for the feedback. I've pushed the patch to master.

> Thanks!

Best regards, Michael.




Notification sent to Richard Copley <rcopley@HIDDEN>:
bug acknowledged by developer. Full text available.
Reply sent to Michael Albinus <michael.albinus@HIDDEN>:
You have taken responsibility. Full text available.

Message received at 76888 <at> debbugs.gnu.org:


Received: (at 76888) by debbugs.gnu.org; 27 Mar 2025 16:38:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 27 12:38:40 2025
Received: from localhost ([127.0.0.1]:51066 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1txqFc-0003hJ-30
	for submit <at> debbugs.gnu.org; Thu, 27 Mar 2025 12:38:40 -0400
Received: from mail-qt1-x829.google.com ([2607:f8b0:4864:20::829]:54587)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <rcopley@HIDDEN>) id 1txqFZ-0003gd-3R
 for 76888 <at> debbugs.gnu.org; Thu, 27 Mar 2025 12:38:38 -0400
Received: by mail-qt1-x829.google.com with SMTP id
 d75a77b69052e-4774193fdffso19588531cf.1
 for <76888 <at> debbugs.gnu.org>; Thu, 27 Mar 2025 09:38:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1743093511; x=1743698311; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=bKAITyjfqPJOHzaDdSsMI0KSY1J8eYFFOr5v2FTVyJw=;
 b=Nur4VZyJ0G1+Y3vZkTDy0LFkMHnxxfhpNO/VuJNMW2LHWzou1X91hoLl7kl6Gc3e2y
 E3kEQi99wQ1J6j5d0ptC4S0OuPB8TJ8HQOW6vQRzu8j2qdto927FOCnwt0E1XLnsMs86
 FAlI/Tyf4ji2UJYiP0XjUhBOIrB4aGWY+ex6XCyWiW5UX2uhLd6VNzrw2455QDqZHflR
 hznMwxehrNE0gtryhwQG/wcrbY9bMJG0VmkBO5eXSSEoyLreR5yEKmxLq3PlHcerVuT2
 GGdxoAfSdwaSsK8UMSSASNt/+EyxS5zB6lbC1tufQT3tJ2PEvdFy6p/ikazvRrdsD6Rz
 JVtQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1743093511; x=1743698311;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=bKAITyjfqPJOHzaDdSsMI0KSY1J8eYFFOr5v2FTVyJw=;
 b=jILL4doolLH96M/ZW3zYOBjBD3k6cxTIA0/UTLPNGPqDvyfJK06NXEhLQRm84uYJl/
 2w1E1kZcaTtCGOARpRX7RfEY0yR+lLrj5kyAfy7oEFPj8/OM5M2qCZE864F7pWMPVxGX
 WS+pTcQ/i+RuyY/+B5TXmGvoaTTXcA8UCmToVtMF9BMtAF5U1OyTdX/U6Faq7gm1yIxw
 oGwO9Mw3njdxaiBOALd0bqmCq+ZPnyKO13sRE6N4V4mGWRWIGZgJD58AEsASjdysS8K2
 A4HaKYDwF5QJk/lETxFuWV4YT5Kvfsfsg4UF6sNN+Gmyk+cHfgnh+02XcVST6XBYu/I6
 PNEQ==
X-Forwarded-Encrypted: i=1;
 AJvYcCWts0PIlFTROGBi0fv3qmiZpgHtI/mjoeyWd9sqcVUL+uP/CGyEuy2Np7KEf2weVANPkCLCXQ==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Ywb3hwENCkNJMgb8AKTJ7Hty97Y1zcxwHxzukODWTWL3S5jX/BU
 35WA6S3jv6mXCTGaXv/VaGtfRqGv+zHcNPHuZv6JLGwX909EYOM8e4eLKQoqNEFYOmGBWkrJiCO
 wjK53xNrIh0caob0tWOTBHUEQX8C/2Q==
X-Gm-Gg: ASbGncuuIxh+q9S2KrX60wGBC30SB75ttgndCctTVu9+1IsMDfNvfMH8LXVFrQaDWo+
 UehVrWDFeQDgSfpbwUSCtOqd+hKSKVmzBcqjn3OIAlGv5lm/M+lPj6ioiAFSJMhEt0h0N5bD46Z
 pWuGTPxYeQ9l2gbGilSTGXirWUrg==
X-Google-Smtp-Source: AGHT+IF7X4WTTaFXf5APcK2/B+uk4dhS0G022vm1daGYsNMyf57RQwD1HRg8F09jpadHPVok+AcoL2OrSyiHJ7qLHJc=
X-Received: by 2002:a05:622a:4a0f:b0:477:dcc:6c18 with SMTP id
 d75a77b69052e-4776e0abf10mr84767021cf.14.1743093510966; Thu, 27 Mar 2025
 09:38:30 -0700 (PDT)
MIME-Version: 1.0
References: <CAPM58oj1z5ZWit1NzDqjZ8cEqYhXfVes5XjT-4-i1okpJca1fg@HIDDEN>
 <86wmcqwm4l.fsf@HIDDEN> <861puxv11i.fsf@HIDDEN>
 <CAPM58oh9sZZq_tpa6p3pvp6YDAFAND_qEpTpg1hgvFGC1D3Lvw@HIDDEN>
 <86wmcptkcf.fsf@HIDDEN>
 <CAPM58oikr4g020whjtq9U1gajs5LDYsBvhMkuK_gY7i6GxJx5g@HIDDEN>
 <86v7s9tgqx.fsf@HIDDEN> <87frjcuj3k.fsf@HIDDEN> <86frjbsp25.fsf@HIDDEN>
 <CAPM58ogQXdM2NE87-eBKinqB4Ac+5oA41xD8h3LNCYeTjV6+2Q@HIDDEN>
 <874izhnu9s.fsf@HIDDEN>
 <CAPM58ogYgWyLSw3FjbOySybUXR0-HmYEv45qtGRsz8cTkUcuYA@HIDDEN>
 <8734ey7mm0.fsf@HIDDEN>
In-Reply-To: <8734ey7mm0.fsf@HIDDEN>
From: Richard Copley <rcopley@HIDDEN>
Date: Thu, 27 Mar 2025 16:38:04 +0000
X-Gm-Features: AQ5f1JrLwMIaXkd6j4RJrwnrZMFTOPGQ4hY5OIYfa5Ucfk30eY0-dBOW3Jw7Poc
Message-ID: <CAPM58og91fKHK5-6+gQvW3Cqfbh3mxjGDgUe5VvN2ehxdownKw@HIDDEN>
Subject: Re: bug#76888: 31.0.50; start-process: Spawning child process:
 Invalid argument
To: Michael Albinus <michael.albinus@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76888
Cc: Eli Zaretskii <eliz@HIDDEN>, 76888 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Thu, 27 Mar 2025 at 11:13, Michael Albinus <michael.albinus@HIDDEN> wrote:
>
> Richard Copley <rcopley@HIDDEN> writes:
>
> Hi Richard,
>
> > Thanks Michael.
> >
> >> Thank you for the analysis. However, I don't believe that your change is
> >> correct. `buffer' is the working (output) buffer of
> >> start-process-shell-command, so we shall call it here.
> >
> > Yes, but 'start-process-shell-command' takes care of switching to 'buffer'.
>
> Yes. But we're already here, due to the '(with-current-buffer buffer ...'.

OK, never mind.

> >> Instead, I've tried the appended patch. Could you, please, check? It
> >> fixes the problem for me.
> >
> > It doesn't work for me. With your patch, on my system, the original
> > recipe still exhibits the problem on the third invocation of
> > 'async-shell-command'.
> >
> > At the time when '(connection-local-value shell-file-name)' is invoked
> > in your patch, the current buffer is the output buffer (not the buffer
> > from which the user invoked 'async-shell-command'), and the default
> > directory is "/plink:xxx/" (not "c:/"), and the value returned is
> > "/bin/sh" (not the file name of "cmdproxy.exe").
>
> I hoped that the connection-local-value trick works. The
> default-directory of buffer is already changed; there is '(setq
> default-directory directory)' in time.
>
> However, connection-local-value does not work as I've hoped. It simply
> uses the recent (buffer-local) value, if default-directory isn't remote.
>
> So we must kill the local value(s) explicitly. The revised patch
> (appended) seems to work. Tested on my Windows 11 VM with your recipe.

Yes, that works.
Thanks!




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76888; Package emacs. Full text available.

Message received at 76888 <at> debbugs.gnu.org:


Received: (at 76888) by debbugs.gnu.org; 27 Mar 2025 11:13:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 27 07:13:30 2025
Received: from localhost ([127.0.0.1]:47768 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1txlAv-0003ew-Sn
	for submit <at> debbugs.gnu.org; Thu, 27 Mar 2025 07:13:30 -0400
Received: from mout.gmx.net ([212.227.17.20]:56063)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <michael.albinus@HIDDEN>)
 id 1txlAs-0003d9-VL
 for 76888 <at> debbugs.gnu.org; Thu, 27 Mar 2025 07:13:28 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de;
 s=s31663417; t=1743073994; x=1743678794; i=michael.albinus@HIDDEN;
 bh=W9rP7Af7LoGTHhBOIyE2u71Zn/3J13b3s/xCg830epM=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date:
 Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding:
 content-type:date:from:message-id:mime-version:reply-to:subject:
 to;
 b=C5xJUvpKAul7yCXDzD+DB3u8BW1B/Dh/EFi7Bzw/kgkXA3pvdrxCOAtbJBVuwhDO
 e0SdDitHyAVKdszTCTAkuYyPaZeq7Y4sxkhEXE4xsYWhjiYP60Xi934oOynsxWMRr
 zMz2NJ/0C8kw7GdkPeZiN6LMDvnwGMFwyqgu90a9qIowZJmoD3CaQO4Jt6FRVpTdM
 hZ4aLecoGpPQBKJf2CeKTtVqdkt/pTBjjqKizI6UU32Ef3ay8/XPRUW2IVMZaWQVC
 izoXI5y2TjRoYElou4IG4ggztsPilj8tiWfiJ1uXdZqltnXXNzujWDSx5G25YmL+d
 z0WgXJwVuJ0opACwcQ==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from gandalf.gmx.de ([185.89.37.59]) by mail.gmx.net (mrgmx104
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mwwdf-1tE28v06Rv-00tbRc; Thu, 27
 Mar 2025 12:13:14 +0100
From: Michael Albinus <michael.albinus@HIDDEN>
To: Richard Copley <rcopley@HIDDEN>
Subject: Re: bug#76888: 31.0.50; start-process: Spawning child process:
 Invalid argument
In-Reply-To: <CAPM58ogYgWyLSw3FjbOySybUXR0-HmYEv45qtGRsz8cTkUcuYA@HIDDEN>
References: <CAPM58oj1z5ZWit1NzDqjZ8cEqYhXfVes5XjT-4-i1okpJca1fg@HIDDEN>
 <86wmcqwm4l.fsf@HIDDEN> <861puxv11i.fsf@HIDDEN>
 <CAPM58oh9sZZq_tpa6p3pvp6YDAFAND_qEpTpg1hgvFGC1D3Lvw@HIDDEN>
 <86wmcptkcf.fsf@HIDDEN>
 <CAPM58oikr4g020whjtq9U1gajs5LDYsBvhMkuK_gY7i6GxJx5g@HIDDEN>
 <86v7s9tgqx.fsf@HIDDEN> <87frjcuj3k.fsf@HIDDEN>
 <86frjbsp25.fsf@HIDDEN>
 <CAPM58ogQXdM2NE87-eBKinqB4Ac+5oA41xD8h3LNCYeTjV6+2Q@HIDDEN>
 <874izhnu9s.fsf@HIDDEN>
 <CAPM58ogYgWyLSw3FjbOySybUXR0-HmYEv45qtGRsz8cTkUcuYA@HIDDEN>
Date: Thu, 27 Mar 2025 12:13:11 +0100
Message-ID: <8734ey7mm0.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Provags-ID: V03:K1:x4+DYL+0zagqnmO1V7Y2+j5BpKxEkREqTWxGfmtInCNTvHh8q9B
 K48HWj0mc5spv2YZgQ1t1PBoGcAnGorjCblfNXBELuoYTd/f5hStRZVWW17lBIFG6QKinjb
 52ZD/fw0TVZzB03DqQkYIHBM69w8cV/OMq9vzxJGLbwi6InyTrlCagjLungZZldIc2466Eq
 zo7a6FyVkvVoO8AzxzKqg==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:vhYMVWAHqVE=;EpA/0AsDop6HOhb0btrCzVZ/8Fp
 iys8Dv8+SOCufcdUwWFHlDgt/RYAvSZ+Jhaoxs7wQvzqyGoabagzqeu2JYbp9I69EegJwPBjv
 mLWRe7d7tJ5A2zjdqMQOekf+sKb9aGoxjI+7jZrmGyEJWX9FA7FkAP1G0q7eJnX2UnueIvpg0
 nzuvZihLHnW876ucoB546P4E0VL76+8WANsU/uv6I+PFCtl44gId3KOMce1WxvXqGEnezIzyp
 BZt1ApdRnVwSZt24jDJTQwJIvHiE7pHkgdJs0+0Tq/YL05d1LQrIPAw4Z4Xfl49MRpk/tXuAV
 QsLVquRGnZFsGjreT0gL4FS7S7oUi+nWCJHs3nj2g21UmLeSTTnGj/itEcmN1NyoJkQmnVm0j
 soc3BqTi4hgLFWBasMgD+JfjDC+B24ECLcDr5hTnlvyyA3E/bU84YpZz2EVkZWkLCQzfh5yWz
 HiLrbXgkeBj8U+6SBKY4tS0w95gvRKiAlMYvpjKGfUyTmrtwYlU9IxhqH9+XbhRPP07HGRm2U
 76bycJh++BSGiYY4y4kUYyCOZDws6l9vrpElTjHN+YAQ8TuJwM7JmlBq8/nfyUvSR38dt8nox
 pCl11XsEz6eVjRUkA7Zy1xy4N3wnoEfYXj+zlJDbR50MLZgxq5Z6xGED3I7sSkKHjDDekUZO9
 QsvJykyQOQbu4ce3C033CoLuYHedZFK+LSJolA+Y4k9YYNHqjUD7OlXWB/UDiFyPCRVfH6dk2
 f5bGcD9lHasnprDa76A2jH6OQwNzM1BuT/Zm0Pb02ue+h/fDcbIF/luApf8qnt4M48gCigfKj
 wLiW8PSRt09y4mbRou3cvdNiaK/WleoqBk//QSJVxYX2BKMnzo9hE9NscmFrD/l7DvO+77yEM
 MYwPwY1eOFpdjlkQgA7GliRMqpHBGI+N2YCzopHlnt5HWLAufS5rYxB1J9aPIHB0aJqoIqUB4
 QbP06ucD2JCzu1rfgWS5bMMot0Z8SeF7vArD9N990dEjXvMkdN5dkzVq9q0Za16V3qHQow6Y9
 BjH0aopw86qDhtcdvfwhZL49CND86NE409KFgM5QLQWZJD01378+scR1e8TBzc76lcm24cu2j
 Vjn1+8UQHyzckVEpi5/q5PgmglgQSWEQN+rAKuHk1GavHjM1L2kINCmOHi6TzH8OavYovCUz2
 ZQ4rhR2nVBC4Q9stk2mI2Tgdb831yB1ljHAg4GLoZniB6GX8p+OKY/wDDrbYrIkgeu/9sTKxT
 j7Xhde07WqSLRkowqnsFFaXVk+b64FHQDWbuGBZr3g9PU/oNZSBds/tsY4WykHQ2ZMxgeV+lp
 r3NXGc2q4wZR5wf/qODMWaHS3E4J/Q3MgJY8Psz92IsOpemhnM5l6DW1uZgryQu0UZftZ8onH
 49r1qTCc4KgXw0UY/NsQJnoKOlBaJ4Yfzg1NyzBfFUPmUdTyQCKbdlP6oybx1FhsjC+E50nPN
 hAGJXUYJx6GrtDxuWurbOFvToJoOXlDKVIAvBLIYXRZkjQoZq
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 76888
Cc: Eli Zaretskii <eliz@HIDDEN>, 76888 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

--=-=-=
Content-Type: text/plain

Richard Copley <rcopley@HIDDEN> writes:

Hi Richard,

> Thanks Michael.
>
>> Thank you for the analysis. However, I don't believe that your change is
>> correct. `buffer' is the working (output) buffer of
>> start-process-shell-command, so we shall call it here.
>
> Yes, but 'start-process-shell-command' takes care of switching to 'buffer'.

Yes. But we're already here, due to the '(with-current-buffer buffer ...'.

>> Instead, I've tried the appended patch. Could you, please, check? It
>> fixes the problem for me.
>
> It doesn't work for me. With your patch, on my system, the original
> recipe still exhibits the problem on the third invocation of
> 'async-shell-command'.
>
> At the time when '(connection-local-value shell-file-name)' is invoked
> in your patch, the current buffer is the output buffer (not the buffer
> from which the user invoked 'async-shell-command'), and the default
> directory is "/plink:xxx/" (not "c:/"), and the value returned is
> "/bin/sh" (not the file name of "cmdproxy.exe").

I hoped that the connection-local-value trick works. The
default-directory of buffer is already changed; there is '(setq
default-directory directory)' in time.

However, connection-local-value does not work as I've hoped. It simply
uses the recent (buffer-local) value, if default-directory isn't remote.

So we must kill the local value(s) explicitly. The revised patch
(appended) seems to work. Tested on my Windows 11 VM with your recipe.

Best regards, Michael.


--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment

diff --git a/lisp/simple.el b/lisp/simple.el
index e6577ffd646..a73bfcba032 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -4715,6 +4715,8 @@ shell-command
 	      (with-current-buffer buffer
                 (shell-command-save-pos-or-erase)
 		(setq default-directory directory)
+                (kill-local-variable 'shell-file-name)
+                (kill-local-variable 'shell-command-switch)
                 (require 'shell)
                 (let ((process-environment
                        (append

--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76888; Package emacs. Full text available.

Message received at 76888 <at> debbugs.gnu.org:


Received: (at 76888) by debbugs.gnu.org; 26 Mar 2025 10:10:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Mar 26 06:10:23 2025
Received: from localhost ([127.0.0.1]:41520 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1txNiJ-0001iy-Br
	for submit <at> debbugs.gnu.org; Wed, 26 Mar 2025 06:10:23 -0400
Received: from mail-qt1-x835.google.com ([2607:f8b0:4864:20::835]:52519)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <rcopley@HIDDEN>) id 1txNiE-0001iX-OA
 for 76888 <at> debbugs.gnu.org; Wed, 26 Mar 2025 06:10:20 -0400
Received: by mail-qt1-x835.google.com with SMTP id
 d75a77b69052e-4774ce422easo25527741cf.1
 for <76888 <at> debbugs.gnu.org>; Wed, 26 Mar 2025 03:10:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1742983813; x=1743588613; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=kd/f9ceNnbKTzsAaAFpVzkqZtyMHnJtwLe9JmvCcz8I=;
 b=kq7pZzJfETzGaQOF6EkIcPNQJLfi7bvat9i+5JcsC4qPZVkNl2R6r9xa00vy0S98Db
 aWIfKJGX4ZOPljbsWbhJ+uCcTDDF+zSUaEdy+c5pl+aT721wbojCO6DdMAj5oSi6gET6
 CONi+5BkFJsadsCPSuGV6u+0h2e5CK/8QJxmcQLjkdSEMEMX7Y70GpcnWb49D4e+t6bW
 yDKZs+W6BsDFpbPQsNxBATlVOavoLLkRIutFO6EW5h1oTYfBQBCqEQmQ67hGSmLk/2X/
 ENg2jUoCPkTnOKfaXrw3cpDxGIBqo16jycr07dKJOlB8VQa+TqSpmG0qaTpHDewjipj/
 xz3Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1742983813; x=1743588613;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=kd/f9ceNnbKTzsAaAFpVzkqZtyMHnJtwLe9JmvCcz8I=;
 b=xVeN9Q6SXCb7GstbUsUY7HVyIeQYAxSRfC+AIjIJzMXClV6W4dRhXYJRic2kjA7VIq
 6/7EZjCBIsMTIkVU786tjGKQ58b1zwRhJd6C73tEM13oQZZRJR7zftyYmeuL5l048DuM
 QTjsqxWKmdoDzlx3VJxboTU51gNd3RJoxXcVG+SxHa2Nb5LVSa9mDF0pnB3lwd5XIkOo
 HLFQ+sz41Xu91zWm4DbCGFRWMolHx7bMZC8f1ThcLWVN/OlWd8Xi9ceIENrpQNGXsYK+
 F6YtRW/6bPeO13lLp/wqjXCaCdaTSZtHEnkgWqACSKKzfIhKpmwhj/QCTZ6TRcge/Gs/
 d4YA==
X-Forwarded-Encrypted: i=1;
 AJvYcCUUH8DREEHQZ0aOKLlCT9ybU+5ePTayJPQ85vXwOhMfHO6wVSpgw6Vq9eL82Oy687lZK3bfmA==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Yweu1eiJ3xYi2XyBUhe6HMtZoIt74/u6QCcFdOw56VAxIfwa5nX
 342wF7O4QfKEjjBi3Ygiq6qF/0W/GGeYV80XjbB8o2ZDSBKIhbEuhqVUvNPaXcUSem4EeD2xkvx
 pv/s+LXj+MS8d9OW3RMMWaBLxf/U=
X-Gm-Gg: ASbGncsqzRmMWP5KY6sTRgL9Cfv29wNNNI7W3aGPAOy0GjCw7F0uyA3AxcCPELbNj/0
 IOTwM6Ugu/O030azftanMGVn2phZrrFCADw4jd/KL52foCbBWjVHBOmS3lerfBrYtOlkGkSrs7c
 mFFpkvvkdBjsPEhksiaLHFSJdjrQ==
X-Google-Smtp-Source: AGHT+IE1EVFUk9Fl7n+qXPMhZabPvZs3riskCYLmQ4F0565Cxv/AQUVnJcJ5k0B29xKwQsEa16Tc443NeCnSWb/cOgA=
X-Received: by 2002:a05:622a:418f:b0:476:b2be:5894 with SMTP id
 d75a77b69052e-4771dd77e18mr406751041cf.13.1742983812745; Wed, 26 Mar 2025
 03:10:12 -0700 (PDT)
MIME-Version: 1.0
References: <CAPM58oj1z5ZWit1NzDqjZ8cEqYhXfVes5XjT-4-i1okpJca1fg@HIDDEN>
 <86wmcqwm4l.fsf@HIDDEN> <861puxv11i.fsf@HIDDEN>
 <CAPM58oh9sZZq_tpa6p3pvp6YDAFAND_qEpTpg1hgvFGC1D3Lvw@HIDDEN>
 <86wmcptkcf.fsf@HIDDEN>
 <CAPM58oikr4g020whjtq9U1gajs5LDYsBvhMkuK_gY7i6GxJx5g@HIDDEN>
 <86v7s9tgqx.fsf@HIDDEN> <87frjcuj3k.fsf@HIDDEN> <86frjbsp25.fsf@HIDDEN>
 <CAPM58ogQXdM2NE87-eBKinqB4Ac+5oA41xD8h3LNCYeTjV6+2Q@HIDDEN>
 <874izhnu9s.fsf@HIDDEN>
In-Reply-To: <874izhnu9s.fsf@HIDDEN>
From: Richard Copley <rcopley@HIDDEN>
Date: Wed, 26 Mar 2025 10:09:45 +0000
X-Gm-Features: AQ5f1JoksSDXWur5KsIHqinqXmM8Y8CY3wQvtp4yOsjOYx8jaKH1Yaje42fuf7w
Message-ID: <CAPM58ogYgWyLSw3FjbOySybUXR0-HmYEv45qtGRsz8cTkUcuYA@HIDDEN>
Subject: Re: bug#76888: 31.0.50; start-process: Spawning child process:
 Invalid argument
To: Michael Albinus <michael.albinus@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76888
Cc: Eli Zaretskii <eliz@HIDDEN>, 76888 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Thanks Michael.

On Tue, 25 Mar 2025 at 12:56, Michael Albinus <michael.albinus@HIDDEN> wrote:
>
> Richard Copley <rcopley@HIDDEN> writes:
>
> > It's easy to move the call to 'start-process-shell-command' outside
> > the 'with-current-buffer' form. I have patched my local emacs repo to
> > do that. It works just fine for me. Whether that is the right thing to
> > do I leave to your judgement. I refrain from attaching the patch since
> > I do not intend to complete a copyright assignment.
>
> Thank you for the analysis. However, I don't believe that your change is
> correct. `buffer' is the working (output) buffer of
> start-process-shell-command, so we shall call it here.

Yes, but 'start-process-shell-command' takes care of switching to 'buffer'.

> Instead, I've tried the appended patch. Could you, please, check? It
> fixes the problem for me.

It doesn't work for me. With your patch, on my system, the original
recipe still exhibits the problem on the third invocation of
'async-shell-command'.

At the time when '(connection-local-value shell-file-name)' is invoked
in your patch, the current buffer is the output buffer (not the buffer
from which the user invoked 'async-shell-command'), and the default
directory is "/plink:xxx/" (not "c:/"), and the value returned is
"/bin/sh" (not the file name of "cmdproxy.exe").




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76888; Package emacs. Full text available.

Message received at 76888 <at> debbugs.gnu.org:


Received: (at 76888) by debbugs.gnu.org; 25 Mar 2025 12:56:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 25 08:56:43 2025
Received: from localhost ([127.0.0.1]:36837 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tx3pi-0001la-Jl
	for submit <at> debbugs.gnu.org; Tue, 25 Mar 2025 08:56:43 -0400
Received: from mout.gmx.net ([212.227.15.15]:34015)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <michael.albinus@HIDDEN>)
 id 1tx3pe-0001lF-LT
 for 76888 <at> debbugs.gnu.org; Tue, 25 Mar 2025 08:56:39 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de;
 s=s31663417; t=1742907392; x=1743512192; i=michael.albinus@HIDDEN;
 bh=MOUt5+4YmAohYXGGRlj9mrH4BuL+eKUx9v0Y0cK1TDo=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date:
 Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding:
 content-type:date:from:message-id:mime-version:reply-to:subject:
 to;
 b=tnrI1Wjz3Dpjgk/IqHth4Nhexn0OzqnMIckqU1f5v5FqNlfFLfk9BZ0aWYVXik71
 RyyluXPGR52YdZbSGPoSFuwaPhqGp7Cb7bWHVY7GKybYpvRdwmc98qXR9WZ7fZUr3
 GQZrA3q+b6gQxktA9DpChfcjRSNqNu1otBYZuG1nb8GhnXVjOQdfWKgO5LS0lD0T2
 tjo54mAZOSnR4pgcMxBDlO5d7iUetn5ChxVckKtGyiPD/Zs+tda1U3adpxvC/Gu9a
 tv9RechJUQuCKUy9eRDheZz2z/oBKgusUkBB/KLGxaDfdbsIdBhwVH0NczYILims1
 XjDDt4SST1RSiTZxTw==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from gandalf.gmx.de ([185.89.37.59]) by mail.gmx.net (mrgmx005
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Mw9UE-1t7Igu0rC8-00xtqs; Tue, 25
 Mar 2025 13:56:32 +0100
From: Michael Albinus <michael.albinus@HIDDEN>
To: Richard Copley <rcopley@HIDDEN>
Subject: Re: bug#76888: 31.0.50; start-process: Spawning child process:
 Invalid argument
In-Reply-To: <CAPM58ogQXdM2NE87-eBKinqB4Ac+5oA41xD8h3LNCYeTjV6+2Q@HIDDEN>
References: <CAPM58oj1z5ZWit1NzDqjZ8cEqYhXfVes5XjT-4-i1okpJca1fg@HIDDEN>
 <86wmcqwm4l.fsf@HIDDEN> <861puxv11i.fsf@HIDDEN>
 <CAPM58oh9sZZq_tpa6p3pvp6YDAFAND_qEpTpg1hgvFGC1D3Lvw@HIDDEN>
 <86wmcptkcf.fsf@HIDDEN>
 <CAPM58oikr4g020whjtq9U1gajs5LDYsBvhMkuK_gY7i6GxJx5g@HIDDEN>
 <86v7s9tgqx.fsf@HIDDEN> <87frjcuj3k.fsf@HIDDEN>
 <86frjbsp25.fsf@HIDDEN>
 <CAPM58ogQXdM2NE87-eBKinqB4Ac+5oA41xD8h3LNCYeTjV6+2Q@HIDDEN>
Date: Tue, 25 Mar 2025 13:56:31 +0100
Message-ID: <874izhnu9s.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Provags-ID: V03:K1:yyUfh4vwYIzXLuRe3GwyizSOjfUMR7w4lL9/zZApNZB/GpGFody
 ORBmjRfQRa91jSZ+EITb5xwDjyANpCNz8/MF4sdGln1rBFfNpqjOh2UzaoHOE1LnHJANVOI
 AHn87TcN55PVOMT+0PbisFtl0aOArhPnViCDisGn71HWq5rV/FPnQIDbmY7hmupEVQ8w3Bu
 JYemwTTYRHvQOTnssulKA==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:4ZkfkDIsnvk=;QZDQaI8ih9oqV+YeS2v3F23d5zf
 hKEOGnbRu/nHlzbVOrNBNB6GCDdksgwpqsSid++SSVvYpdAxfFTk2CSmlEGycoT0brUXfBgl0
 Tc1aWqyYrpZXCaWywGrzvngHbSYsGsPLP0f5HP5KM++VurIQxq6uw36eVGlCHTngkbczEcnKW
 7j//vs+/r7MJncYs/YhdoB8io97fUydE2+SZjcpUjjGCvw7gFDWKHDHOtGxHK+wFeWvL0DqgV
 AE9JYHGyMzToYh0g32N1pzUL1A/5NFEen7pWOGe8+SbswoMt1q6dXIMQ/RkFZaHbvpwOYkyk0
 Znff2xYXA3yrbrjmgFIQB56GtEsaSXwUnq1cMaUU1bA2R4dbKvefb+6Cs3G0Y17vIS9WzIX5j
 fK4828bFKWx7AISjeMv2mLDE1VaFVDYF2vnTbSeq9rz5HDYkn0VomFD3A0O2B15rh7YRfIACi
 YOEZDPY8Ocpcw55ioSaDefNkeY18kbzHnFTMCpiza9+LcRuyHxN/muQbi+Fb7P7gJHaXFaPCe
 1pWS/iKucpxrSNIksqhqEEW4EgOPI1nZey6yywCTk2QoA9PHgMNzb63m3y0ydtJ3cDejXxEaq
 89RGTRoeY8If6MekPfqHjwEqy6CqBhikDjAWL9Zb/SL1er3vcS4n7RIu4hIquZgoA/3z7HLGo
 F+ihhTodbFLgBEciOx4chicyxbrbq/whzwHkv8mzbez0ZltGxUtPWOzhSigbH1EyTamDzA4Vu
 GSsBuSEZxtJUwIgcAdJNjWAZGiUf5gB4WHUka0mqUqlXNljf4M33yI3MpnZGjnXAdHW3Fdble
 Pu/qiyh4LqE6kXfiF/evi/N4xaEQjFhdY8QvZt/eXa2y0PulqA9xA6kiNW3tJL4+ULGIZPlJr
 foDsHxyLnZZPVFyPGwfgYBHUa1r1IL9l6udXgymzYcH/cXo+1TeuqCPvMpmbamFtpN5AH80E7
 RE8e/MssTC6G3CJ5Rxl5Gq3pcFUpSAsftNH9tz+3OuG8LxzkputiAnuCFNRfzcIcJrMSCbvAW
 IwlBnpwFJJOJpfusbLp0h1NCjZbJuXVjQnhwuUKYtPhJErQAtgnmcO7/VSa9F52856uyoAbDh
 dL86dkP1ENuu4Oz9tFJ72CYc6aeClO6C1tKutgwy+00O2QrMovHv6k1C8AM0k8/IZqr0LDKwZ
 ifvcp2yTzGPV2isLoSxJH2i64PvJG+DrYzDak92fRAIVxFr0naw/1dw0uU+VqCABq2ww+KID0
 1ISrOWDe/Pi/58s6M8Mr5mBsMirD8JXkSjcsrKVt5V8enkL/KGAmwbzr3hqDJJhntt+6RoO+9
 fHC8MV1cRW+dbAtPOBsCnq9ha3cFu4SutHaslCBdJHbInDb1pipCCobb/JsjdO+8S1PpcwcwE
 iwJYWnhuoMAaJqOp1GnSUOvxccEE1xYZRDU8YtzfKlptv0Ln/Fj/uuepRITkXAuLhG8aXPfqJ
 vbw5GXoJRZYhQ6mxmUURy0sTCYks=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 76888
Cc: Eli Zaretskii <eliz@HIDDEN>, 76888 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

--=-=-=
Content-Type: text/plain

Richard Copley <rcopley@HIDDEN> writes:

Hi Richard,

> It's easy to move the call to 'start-process-shell-command' outside
> the 'with-current-buffer' form. I have patched my local emacs repo to
> do that. It works just fine for me. Whether that is the right thing to
> do I leave to your judgement. I refrain from attaching the patch since
> I do not intend to complete a copyright assignment.

Thank you for the analysis. However, I don't believe that your change is
correct. `buffer' is the working (output) buffer of
start-process-shell-command, so we shall call it here.

Instead, I've tried the appended patch. Could you, please, check? It
fixes the problem for me.

Best regards, Michael.


--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment

diff --git a/lisp/simple.el b/lisp/simple.el
index e6577ffd646..18073256063 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -4723,7 +4723,11 @@ shell-command
                               (format "COLUMNS=%d"
                                       async-shell-command-width)))
                         (comint-term-environment)
-                        process-environment)))
+                        process-environment))
+                      (shell-file-name
+                       (connection-local-value shell-file-name))
+                      (shell-command-switch
+                       (connection-local-value shell-command-switch)))
 		  (setq proc
 			(start-process-shell-command "Shell" buffer command)))
 		(setq mode-line-process '(":%s"))

--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76888; Package emacs. Full text available.

Message received at 76888 <at> debbugs.gnu.org:


Received: (at 76888) by debbugs.gnu.org; 24 Mar 2025 11:54:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 24 07:54:46 2025
Received: from localhost ([127.0.0.1]:54522 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1twgOE-0005Ai-3B
	for submit <at> debbugs.gnu.org; Mon, 24 Mar 2025 07:54:46 -0400
Received: from mail-qt1-x82b.google.com ([2607:f8b0:4864:20::82b]:53355)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <rcopley@HIDDEN>) id 1twgO9-0005AP-0L
 for 76888 <at> debbugs.gnu.org; Mon, 24 Mar 2025 07:54:41 -0400
Received: by mail-qt1-x82b.google.com with SMTP id
 d75a77b69052e-476af5479feso39636601cf.2
 for <76888 <at> debbugs.gnu.org>; Mon, 24 Mar 2025 04:54:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1742817275; x=1743422075; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=gHN7pYPp+7Vwi5khGPLSR4HuZb2V7gUJ+uCtdEE24jk=;
 b=ApcF/tSlru9yvpYxWmb5G9wciQ+0G+0nfXM9Fi/ujhBPup7deHzmkC1zn33tv+dc/3
 j0xghMkyykJTJ7SmhZzmJuBMcjDMZC6rIMGBwz/ygngW0ZPHeyUa0h4G2DKj95dWLYxJ
 +7zoUpWjia8HJ319/mS41nP3RxM9pBQEXWqFEVV9aNHocVqS+jyEb25fnAXfb91H0das
 h7Vs2mPZo9KVP7Qxa1oJe0B2BeG2NFvuL65BRYfui+vgmwWekqO3b0lqOZEl3NFPa4Th
 zqq4xwaCqTk+hcgg3iKOgzFoAGPt4Jao/86nACwf7e3j4K7XBZ0T2vlhMadI+c7x+gUv
 5GDw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1742817275; x=1743422075;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=gHN7pYPp+7Vwi5khGPLSR4HuZb2V7gUJ+uCtdEE24jk=;
 b=vdt/lzfbgJitwQ358yJxrV/QcHOLXljPZ8ncoOhvRnUMnhbFDqQl32XV58+U3qLxDx
 DVZ/VqlKeitAs6EFTr0e8Y/PHc4C80BFjZLBR+W+nuk2y4E29VJhL355yHU/uhRC9Ofu
 P2nrziDtEBePxvFxc9Bzjvm/sUP/abN18Sc8ZCeWlYOTrW98KYn0aN8UF0t/Csg2n7Km
 rirDhsE+Z8LLGmfHRrqFR8CVOUF+kkm/MOVyHJXyUZ1JdLg2SVAnIv4ZeAQ3vQiSuwec
 vWZFe0ms+Mj6HpoFW+jxUWJ9iH8tSOZ0YAn9Dp5ZmysoWGQJGnY8J+Dqi9eVlKMZuQhp
 PVFw==
X-Forwarded-Encrypted: i=1;
 AJvYcCXF95XlmZ9hf1Zl1dugYel9eIUmtVWJ8yWOH8/6gEab0GRTTXS4Nbs4fG+spxNmpoJvB7y/3Q==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YzDX8n6MuZ4MaNQ1lGdSRq6ifWEopmCnLZOyZzDa5K/9G7Q/yUm
 Z2yiOZK2Rwy63g5EOK2gsV6Kd6srRBAq0ox1+mPE5YJkZhptIu7BpNQK0IqwbCOGCXo2wrj72Nc
 2bwMe42vEtWtXSjKeNwE9LJInBm0=
X-Gm-Gg: ASbGnctqi2DoM8T3CiYhoTHZAVOMdui1A0fBKXTQdG2sTOgOGA9Nu7kgIGbmXRiflR9
 ApyR0ygJerivp/ITG8GRaw2NDxFvBPmjnEPsBlEUUHoEfMKe9jXR3O2B2FAeTsFt43XfIcnrReh
 RgUQsSUkoGHBh4eBEdlIMMeU+c9w==
X-Google-Smtp-Source: AGHT+IE4QsU1puT/XoKox5fH5SMnfq7gmRf1P+uiikySiy4Us9QqBZ5FTdv43InOZyBkcIbWzdfLWj5uD8CBKbmDpOQ=
X-Received: by 2002:ac8:71ce:0:b0:477:1eec:e355 with SMTP id
 d75a77b69052e-4771eed082bmr157409371cf.3.1742817274884; Mon, 24 Mar 2025
 04:54:34 -0700 (PDT)
MIME-Version: 1.0
References: <CAPM58oj1z5ZWit1NzDqjZ8cEqYhXfVes5XjT-4-i1okpJca1fg@HIDDEN>
 <86wmcqwm4l.fsf@HIDDEN> <861puxv11i.fsf@HIDDEN>
 <CAPM58oh9sZZq_tpa6p3pvp6YDAFAND_qEpTpg1hgvFGC1D3Lvw@HIDDEN>
 <86wmcptkcf.fsf@HIDDEN>
 <CAPM58oikr4g020whjtq9U1gajs5LDYsBvhMkuK_gY7i6GxJx5g@HIDDEN>
 <86v7s9tgqx.fsf@HIDDEN> <87frjcuj3k.fsf@HIDDEN> <86frjbsp25.fsf@HIDDEN>
In-Reply-To: <86frjbsp25.fsf@HIDDEN>
From: Richard Copley <rcopley@HIDDEN>
Date: Mon, 24 Mar 2025 11:54:07 +0000
X-Gm-Features: AQ5f1JomX6taluRhL_KYAceowbRGlDVXnTt6Vd6lAoNxxCw_2dsaP9-UFnfyntY
Message-ID: <CAPM58ogQXdM2NE87-eBKinqB4Ac+5oA41xD8h3LNCYeTjV6+2Q@HIDDEN>
Subject: Re: bug#76888: 31.0.50; start-process: Spawning child process:
 Invalid argument
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 76888
Cc: Michael Albinus <michael.albinus@HIDDEN>, 76888 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Sun, 16 Mar 2025 at 10:24, Eli Zaretskii <eliz@HIDDEN> wrote:
>
> > From: Richard Copley <rcopley@HIDDEN>
> > Date: Sun, 16 Mar 2025 09:39:32 +0000
> > Cc: michael.albinus@HIDDEN, 76888 <at> debbugs.gnu.org
> >
> > On Sun, 16 Mar 2025 at 09:07, Eli Zaretskii <eliz@HIDDEN> wrote:
> > >
> > > > The first factor is that the value of shell-file-name sometimes gets
> > > > set buffer-locally in the "*Async Shell Command*" buffer. (This is
> > > > true for the Tramp code, when the buffer is reused. I don't know if it
> > > > is meaningful to ask whether it is true for the non-Tramp code.)
> > >
> > > If Tramp sets the buffer-local value in the "*Async Shell Command*"
> > > buffer, it should also set default-directory in that buffer.
> > >
> > > > The second factor is that 'async-shell-command' sometimes uses the
> > > > value of shell-file-name from the "*Async Shell Command*" buffer.
> > > > (This is true for the non-Tramp code. I don't know if it is true for
> > > > the Tramp code.)
> > >
> > > Please point out the code which uses the value of shell-file-name
> > > local to the "*Async Shell Command*" buffer.
> >
> > In 'shell-command' in "simple.el", 'start-process-shell-command'
> > is called after changing to the "*Async Shell Command*" buffer.
> >
> >         (let* ((buffer (get-buffer-create
> >                 (or output-buffer shell-command-buffer-name-async)))
> >                 [...])
> >           [...]
> >           (with-current-buffer buffer
> >         [...]
> >           (setq proc
> >             (start-process-shell-command "Shell" buffer command)))
> >
> > Then in the body of 'start-process-shell-command',
> >
> >   (start-process name buffer shell-file-name shell-command-switch command)
>
> That's a mistake: at least for local commands, the values of
> shell-file-name and shell-command-switch should come from the buffer
> that is current when the command is invoked.

It's easy to move the call to 'start-process-shell-command' outside
the 'with-current-buffer' form. I have patched my local emacs repo to
do that. It works just fine for me. Whether that is the right thing to
do I leave to your judgement. I refrain from attaching the patch since
I do not intend to complete a copyright assignment.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76888; Package emacs. Full text available.

Message received at 76888 <at> debbugs.gnu.org:


Received: (at 76888) by debbugs.gnu.org; 17 Mar 2025 14:35:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 17 10:35:32 2025
Received: from localhost ([127.0.0.1]:59663 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tuBYy-0006mI-0P
	for submit <at> debbugs.gnu.org; Mon, 17 Mar 2025 10:35:32 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:46498)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tuBYt-0006l3-Ns
 for 76888 <at> debbugs.gnu.org; Mon, 17 Mar 2025 10:35:29 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1tuBYn-0002G8-9L; Mon, 17 Mar 2025 10:35:21 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=1ffVsYSpZAWexBWPWpMePuXG3EbuuOBcsgeCdTLgEZU=; b=oc3CBNGJXMi0
 JgEhTZ3lKXZh5pctwv5PSqAkX8/33e5QAyMM6FKo7c/VnMklKprtwWD1YnCTdIUfJaNWUuJA4wC0o
 ywu2zKKKeqxqBE3AVpB/TQ9CMe2X8o9NHjFnAw5uLPLkOXAyvlMAbxNzy5a+D8Sh5rYaUhAUzauHl
 koHMAWvaY0RVEvYDxV+Ex/KFUz5KO1BQpM3BdKg4Tjck8Cd0tLyzBKRfZwgypUoA+M1/huUImbVHS
 5FD7OVMjKt5dT7xy9QcpYLbdKoQOK/D7K40oFOvSS/Dty7vj0gveBMfZKR1xleBnlNWXMOhRpNXQA
 CQzZsMTLE8cH56tR6a0B2Q==;
Date: Mon, 17 Mar 2025 16:35:14 +0200
Message-Id: <86frjbsp25.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Michael Albinus <michael.albinus@HIDDEN>
In-Reply-To: <87frjcuj3k.fsf@HIDDEN> (message from Michael Albinus on Mon, 17
 Mar 2025 10:01:03 +0100)
Subject: Re: bug#76888: 31.0.50; start-process: Spawning child process:
 Invalid argument
References: <CAPM58oj1z5ZWit1NzDqjZ8cEqYhXfVes5XjT-4-i1okpJca1fg@HIDDEN>
 <86wmcqwm4l.fsf@HIDDEN> <861puxv11i.fsf@HIDDEN>
 <CAPM58oh9sZZq_tpa6p3pvp6YDAFAND_qEpTpg1hgvFGC1D3Lvw@HIDDEN>
 <86wmcptkcf.fsf@HIDDEN>
 <CAPM58oikr4g020whjtq9U1gajs5LDYsBvhMkuK_gY7i6GxJx5g@HIDDEN>
 <86v7s9tgqx.fsf@HIDDEN> <87frjcuj3k.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 76888
Cc: rcopley@HIDDEN, 76888 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Michael Albinus <michael.albinus@HIDDEN>
> Cc: Richard Copley <rcopley@HIDDEN>,  76888 <at> debbugs.gnu.org
> Date: Mon, 17 Mar 2025 10:01:03 +0100
> 
> It seems to me that the problem is rather the re-use of the "*Async
> Shell Command*" buffer even in case the default-directory changes. It
> isn't a problem if this change is inside the same "remote" file system
> Tramp offers virtually. But if the change means, that another remote
> connection is established, or there is a change between remote and local
> directory, I propose to use another (new) "*Async Shell Command*" buffer.

We could reuse the buffer, but kill all its local variables, no?

But I feel that I still don't understand how this problem happens.
Can you take me through the steps of processing M-&, and explain how
come the buffer-local value of "*Async Shell Command*" gets to be used
for M-& in this scenario?  In particular, even if the buffer is
reused, why don't we re-calculate the local value of shell-file-name
every invocation of a shell command? why cache it?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76888; Package emacs. Full text available.

Message received at 76888 <at> debbugs.gnu.org:


Received: (at 76888) by debbugs.gnu.org; 17 Mar 2025 09:01:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 17 05:01:22 2025
Received: from localhost ([127.0.0.1]:55373 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tu6LX-0006Ne-MS
	for submit <at> debbugs.gnu.org; Mon, 17 Mar 2025 05:01:22 -0400
Received: from mout.gmx.net ([212.227.17.21]:49131)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <michael.albinus@HIDDEN>)
 id 1tu6LR-0006ME-OR
 for 76888 <at> debbugs.gnu.org; Mon, 17 Mar 2025 05:01:17 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de;
 s=s31663417; t=1742202064; x=1742806864; i=michael.albinus@HIDDEN;
 bh=9aUZBXLNdC9w7ZsEeqGESbcuck2FFG9xrmC3TGK3EOY=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date:
 Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:cc:
 content-transfer-encoding:content-type:date:from:message-id:
 mime-version:reply-to:subject:to;
 b=nnoMbceKJoRG67ZPVXgu+QTDaAgIeaR8LOAd6+tyd/mh9s5r3eHC1tRHLi3YXPpO
 V0I6qzfPWMGtgtzKBgPUBo/Is2igF+hWqtrHhgbJxVudDp3biPvAGBF7Q0xlb9BN8
 8R1eVrCHLiS15+a7dcAyPAyuOCm4024gYIqNC+zJD7YD/cbZfam03sJIKsLdpzSR9
 DdSg1uRLRzrHgQitbPcxapJpM8QvY4OhfFmJNkOBy6IhgeKLpx4wMniiLQRr9xate
 rkCYaXo40+VNJP4mrHkVQy2cPpvWaLbK/bD88pceoTG+NAmGqqmvjOcRiawP6EEav
 b35sJJFxdwXlaGZ48g==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from gandalf.gmx.de ([185.89.37.59]) by mail.gmx.net (mrgmx104
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MmlTC-1tRsXR3SDe-00cNwE; Mon, 17
 Mar 2025 10:01:03 +0100
From: Michael Albinus <michael.albinus@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#76888: 31.0.50; start-process: Spawning child process:
 Invalid argument
In-Reply-To: <86v7s9tgqx.fsf@HIDDEN>
References: <CAPM58oj1z5ZWit1NzDqjZ8cEqYhXfVes5XjT-4-i1okpJca1fg@HIDDEN>
 <86wmcqwm4l.fsf@HIDDEN> <861puxv11i.fsf@HIDDEN>
 <CAPM58oh9sZZq_tpa6p3pvp6YDAFAND_qEpTpg1hgvFGC1D3Lvw@HIDDEN>
 <86wmcptkcf.fsf@HIDDEN>
 <CAPM58oikr4g020whjtq9U1gajs5LDYsBvhMkuK_gY7i6GxJx5g@HIDDEN>
 <86v7s9tgqx.fsf@HIDDEN>
Date: Mon, 17 Mar 2025 10:01:03 +0100
Message-ID: <87frjcuj3k.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:H2R6253hgx5UYulavuFgdru5zwgh4s1qp5scJkk7MMZvh+SMy2S
 MBbIPKW1YhoZpsK1EdOpWaPo448UrESRpKzpch4Dlwhnr1MbnEwTjV+8pi6+qyUDiGsUiPL
 Bl8FXxWxuksP34gpQmxRh1Nqqzam5FLNkXLN1uJaSscsHD7dkHtIfBYZ96YdeBrvbSo3Khv
 Q++nA0ZfKOLNRqa/2fu8A==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:/FjJDZBXkpI=;HqMPU+6BUjak5imV0mVg5tifzGn
 aJFU/wtrP70EN4fp7oDp4SLpyASqIN0V4mxsp00EE96AeZsFEl3wYT7odQ0uMia4yj9f5dfmJ
 Xf5BmoCXPPfgnGArnx2Gh5WjYYFZaY7PF8o3RrVXar2Vzg6e4pH5KYx/LNRehw8q7B69CYJs2
 n38EJ42qQRIHZuTnnqxR2RcstQqdk1zjeZq4ZenRTXw1Hz7mW1wvw+u2c3ap+fvESJ7jplvJ1
 Z/DXyOoZDGUuzskXzBdvHxJH0WRiDXHr7OsIV3pYB6Z6BCzuUn21pbVtsD2RUEuU0sjKjnvMq
 HnjcCG1iTdTZnfCgv6+8UtsmPKmiFbrK6nz3x/r7R3BPx5Tx2W+qigbwAbOdfJUSIoq5u/qCQ
 mIN6S+ZJ1Edk1D3h5JuqZDSItmEhfOtNUp94LfeUHyHe6ixx+TgN6N5kCWMgDu3R/EQna32Xz
 OPL+Mz6BRzT8wcdGhIh/iCXZa5lgUpcgRlXF3w3XqnpyxQPghK4CVroMa32r8OjuezeWR+m24
 Go7xObHpeL4nj5HB0ojzksN9p95sDcwRan2ifQT0D58EuUG6I1da95RErfe5Sl6brs2EnDi3O
 gtx3YBFb5d2xoS/SoIr6LmMgok4j30SzirKDJJ9CZapPhQ7KdDTOhcwGmdxVuT+uKd5ndwYff
 3j4bhs1FBvU3e7CJYw4IY86IAUxUB/hAdzr8zRz3zxu5niqIXt2xihrTdikRKyaJ9lZsDk+Qp
 /HSGJTn0rolVlyspm4xlIEkgkfUYEsFIgrWBlhQt1n5OKLGfDCpEhHRRidL+T+mgWF9cgPkpA
 9Z264YLbG7w2Rk117nlTAtgVxZrrIG1o+FouaurhWFg8/GuuM78II+lAAZXJagdxvQN1irGFy
 n9kxlaw27jbbNB8haivDR1LJa5lWFc8h9gVJNoXNnr5bouueZptAnfjoUvD12Ps+Bg0qJIfbM
 rdQQkkwEB/URObsxYuNae2MqOMoTeO/sNxXBv6Tj+vecCppJbFU5sZthlJ6fmOXbEuBxcf4AC
 cPaDj1zi+pR5Sh30RxT+qKvN6PglNAgoblnc7GfkgDE9yMgay243rRKGUbMwwEXCcq9y09uco
 d2xcnvgGIiX6IJ7t7wSK2AnK49G6xh9s7bP5sdhyWePDMn0J1hWYX9B7Ygocu9k5He2wZokgt
 NV1Mt/sWoLCXrZ5HekQiXPTlCjxItp2OILM/9PiWaFp0p7kMfZL3wR7DesMp0ALgECutI2e7B
 uHKHLC+uB5GdzsYgBDXCbvqFYMKq4Sk7RIHgCgVAzx988DXCSs2Qkaef4tLtZxhMD+6JrkABT
 3k/3YYCgzLD3LSzEvy+2jzGm2xA9QM+MSt1IRAKl/p9yfk4fxVpsJURXiA2jqSrLrIqTO+buQ
 k/5Iyn2/WdGL1z6DM8RHc1KLY6dLUBIqwEFzPlj+tffN6vSAT0w51s/5zyeN1uEdWdaUGvvzX
 TRNCH/0Azvh6h2GUGFQQnKgYmgN12tFx29CWz/hiHlgNuF5u6
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 76888
Cc: Richard Copley <rcopley@HIDDEN>, 76888 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

Hi,

>> > > The first factor is that the value of shell-file-name sometimes get=
s
>> > > set buffer-locally in the "*Async Shell Command*" buffer. (This is
>> > > true for the Tramp code, when the buffer is reused. I don't know if=
 it
>> > > is meaningful to ask whether it is true for the non-Tramp code.)
>> >
>> > If Tramp sets the buffer-local value in the "*Async Shell Command*"
>> > buffer, it should also set default-directory in that buffer.

It is vice-versa. Tramp sets a buffer-local value of shell-file-name in
"*Async Shell Command*" depending on the default-directory of that
buffer. In fact, it is a connection-local value (which is implemented
via buffer-local value).

The setting of the connection-local value is done in
tramp-integration.el:

=2D-8<---------------cut here---------------start------------->8---
(defconst tramp-connection-local-default-shell-variables
  '((shell-file-name . "/bin/sh")
    (shell-command-switch . "-c"))
  "Default connection-local shell variables for remote connections.")
=2D-8<---------------cut here---------------end--------------->8---

>> In 'shell-command' in "simple.el", 'start-process-shell-command'
>> is called after changing to the "*Async Shell Command*" buffer.
>>
>>         (let* ((buffer (get-buffer-create
>>                 (or output-buffer shell-command-buffer-name-async)))
>>                 [...])
>>           [...]
>>           (with-current-buffer buffer
>>         [...]
>>           (setq proc
>>             (start-process-shell-command "Shell" buffer command)))
>>
>> Then in the body of 'start-process-shell-command',
>>
>>   (start-process name buffer shell-file-name shell-command-switch comma=
nd)
>
> That's a mistake: at least for local commands, the values of
> shell-file-name and shell-command-switch should come from the buffer
> that is current when the command is invoked.
>
> Let's wait for Michael to chime in and explain how these variables
> should be populated for remote shell commands; I guess
> connection-local variables should be consulted, but the relevant
> connection should be taken again from the buffer that is current when
> the command is invoked.

Tramp sets connection-local values for asynchronous processes in the
buffer which is given at start. Always.

>> > Buffer-local values should matter only when commands are invoked with
>> > that buffer the current buffer.  Which part(s) of your recipe do that=
?

We're speaking about connection-local values. And they are set in
Tramp's implementation of make-process.

>> The recipe does not do that. The command 'async-shell-command' is
>> invoked three times from dired buffers and never from the "*Async
>> Shell Command*" buffer.
>
> Then it's a clear bug.  I'm guessing the code in question never
> expected shell-command to have a buffer-local value (which is indeed
> an unusual and strange situation).  So maybe a simpler solution is to
> never make shell-command's value be buffer-local.

That's not possible if Tramp is in play with its connection-local
variables.

It seems to me that the problem is rather the re-use of the "*Async
Shell Command*" buffer even in case the default-directory changes. It
isn't a problem if this change is inside the same "remote" file system
Tramp offers virtually. But if the change means, that another remote
connection is established, or there is a change between remote and local
directory, I propose to use another (new) "*Async Shell Command*" buffer.

Best regards, Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76888; Package emacs. Full text available.

Message received at 76888 <at> debbugs.gnu.org:


Received: (at 76888) by debbugs.gnu.org; 16 Mar 2025 10:25:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 16 06:25:09 2025
Received: from localhost ([127.0.0.1]:45558 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ttlB5-0007r1-Vx
	for submit <at> debbugs.gnu.org; Sun, 16 Mar 2025 06:25:09 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:58266)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1ttlB2-0007nb-Aa
 for 76888 <at> debbugs.gnu.org; Sun, 16 Mar 2025 06:25:06 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ttlAv-00059j-Rv; Sun, 16 Mar 2025 06:24:57 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=Ge95oxJ1ixOmQoevS53IONUaYiFrGBObwa+NgAutKFo=; b=Fr+fO+GKKDPu
 yFhnkWOfXSNwUhjC1H3hRYTQ7PNFMylQxM10WroAzAYx1JHMsdc2BUG8zgKEbhmXPezL/o78+HDS6
 uC8Ps2g6jC6CQMs56sIR4UUZGGLrQeIlxHddYxqAub/4RQ4Qu2H65fdtCb4IQfgG51B4Lo72aC/Wk
 +NSaEr3dPyHtORhvNC3+fu34eThHQn8e7tzszA95jfpW178PSfnvTfRkzsRF2Q+/fpDd+GBz+68DG
 1DH4PmRaQtdBtoc9/HocnR85M4XVQAXBr6S7ip50BcQOU6y+NO8jaMZZew6BH/98/cPUK8aFFp4bM
 2p/axYQmg6+opFsjVOcVbQ==;
Date: Sun, 16 Mar 2025 12:24:54 +0200
Message-Id: <86v7s9tgqx.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Richard Copley <rcopley@HIDDEN>
In-Reply-To: <CAPM58oikr4g020whjtq9U1gajs5LDYsBvhMkuK_gY7i6GxJx5g@HIDDEN>
 (message from Richard Copley on Sun, 16 Mar 2025 09:39:32 +0000)
Subject: Re: bug#76888: 31.0.50; start-process: Spawning child process:
 Invalid argument
References: <CAPM58oj1z5ZWit1NzDqjZ8cEqYhXfVes5XjT-4-i1okpJca1fg@HIDDEN>
 <86wmcqwm4l.fsf@HIDDEN> <861puxv11i.fsf@HIDDEN>
 <CAPM58oh9sZZq_tpa6p3pvp6YDAFAND_qEpTpg1hgvFGC1D3Lvw@HIDDEN>
 <86wmcptkcf.fsf@HIDDEN>
 <CAPM58oikr4g020whjtq9U1gajs5LDYsBvhMkuK_gY7i6GxJx5g@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 76888
Cc: michael.albinus@HIDDEN, 76888 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Richard Copley <rcopley@HIDDEN>
> Date: Sun, 16 Mar 2025 09:39:32 +0000
> Cc: michael.albinus@HIDDEN, 76888 <at> debbugs.gnu.org
> 
> On Sun, 16 Mar 2025 at 09:07, Eli Zaretskii <eliz@HIDDEN> wrote:
> >
> > > The first factor is that the value of shell-file-name sometimes gets
> > > set buffer-locally in the "*Async Shell Command*" buffer. (This is
> > > true for the Tramp code, when the buffer is reused. I don't know if it
> > > is meaningful to ask whether it is true for the non-Tramp code.)
> >
> > If Tramp sets the buffer-local value in the "*Async Shell Command*"
> > buffer, it should also set default-directory in that buffer.
> >
> > > The second factor is that 'async-shell-command' sometimes uses the
> > > value of shell-file-name from the "*Async Shell Command*" buffer.
> > > (This is true for the non-Tramp code. I don't know if it is true for
> > > the Tramp code.)
> >
> > Please point out the code which uses the value of shell-file-name
> > local to the "*Async Shell Command*" buffer.
> 
> In 'shell-command' in "simple.el", 'start-process-shell-command'
> is called after changing to the "*Async Shell Command*" buffer.
> 
>         (let* ((buffer (get-buffer-create
>                 (or output-buffer shell-command-buffer-name-async)))
>                 [...])
>           [...]
>           (with-current-buffer buffer
>         [...]
>           (setq proc
>             (start-process-shell-command "Shell" buffer command)))
> 
> Then in the body of 'start-process-shell-command',
> 
>   (start-process name buffer shell-file-name shell-command-switch command)

That's a mistake: at least for local commands, the values of
shell-file-name and shell-command-switch should come from the buffer
that is current when the command is invoked.

Let's wait for Michael to chime in and explain how these variables
should be populated for remote shell commands; I guess
connection-local variables should be consulted, but the relevant
connection should be taken again from the buffer that is current when
the command is invoked.

> > Buffer-local values should matter only when commands are invoked with
> > that buffer the current buffer.  Which part(s) of your recipe do that?
> 
> The recipe does not do that. The command 'async-shell-command' is
> invoked three times from dired buffers and never from the "*Async
> Shell Command*" buffer.

Then it's a clear bug.  I'm guessing the code in question never
expected shell-command to have a buffer-local value (which is indeed
an unusual and strange situation).  So maybe a simpler solution is to
never make shell-command's value be buffer-local.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76888; Package emacs. Full text available.

Message received at 76888 <at> debbugs.gnu.org:


Received: (at 76888) by debbugs.gnu.org; 16 Mar 2025 09:40:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 16 05:40:11 2025
Received: from localhost ([127.0.0.1]:45463 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ttkTZ-0001Ly-61
	for submit <at> debbugs.gnu.org; Sun, 16 Mar 2025 05:40:11 -0400
Received: from mail-qt1-x834.google.com ([2607:f8b0:4864:20::834]:51560)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <rcopley@HIDDEN>) id 1ttkTU-0001GQ-UM
 for 76888 <at> debbugs.gnu.org; Sun, 16 Mar 2025 05:40:07 -0400
Received: by mail-qt1-x834.google.com with SMTP id
 d75a77b69052e-476964b2c1dso1250421cf.3
 for <76888 <at> debbugs.gnu.org>; Sun, 16 Mar 2025 02:40:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1742117999; x=1742722799; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=9lkJXWgGZez8ljY6IzvV9Ao3vJe77t+UcEPGIRyJCTM=;
 b=gmTkTSqD1wpIsPEAjTNBWTb8zZaYqDnHeVzDonFQxIPwLBeE5CslUJNIcY4RtWL5DZ
 0jGdl7eZwnucqM+R5bsik1t+NQLIMhPx/E0cCTtD1hfp7Ws4e3lZB8xEfILV8U5sjxjk
 20QA1/U6CgY2WSUsyDDBaxANyfFkeV9Z7klMidX1YCN4aemkMEddrehI39VVkL4HI+ig
 pUqdaeCj1J+NSwL2ja8K4LWnKyer3t71Vtz2xa/GPmV0DLRWo+kRCFrFmeCkrOIJxp+j
 a3RkqfnnaZxGV5LRYPVArsPhVFMTGVZeJIpzLLlLhpNJJZPx1Dn2hJcY6POks3LLrbjL
 MzdQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1742117999; x=1742722799;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=9lkJXWgGZez8ljY6IzvV9Ao3vJe77t+UcEPGIRyJCTM=;
 b=kHWp26jljVQ5TMZvuhkAmJqF07E7aRbo3rWPQ7BQdZpt5rr4IiHWatmst2Eb4LxlFu
 xXr4Cy6wkD5E/wN5QdUGtDvgAGWIUCIenqZsc2iUHkxi6aZJPaYEN13DGyhFg4wORs1F
 V65MIe/4frHvDTd+yIunyOLJP0vl0ysdSeKi1nQOkijCpQndRFlt552zQcVB3gZmcACw
 5BnGYH+A6offBgoqQbWO8V1evI53MUpSr7ujagGfsyAzzTYvjpF7iAJ6H7goxZQvhDRQ
 G8av36kWJs1WE0Ui+Xd5qZ0/GYr32VMt0nCaQkIaBDYqOQDEoZPB0GtHIvyRDeRKU+8j
 ANEQ==
X-Forwarded-Encrypted: i=1;
 AJvYcCV1/MrleCLwFNHZSbCFkRDvSUg0lwAS4WnbmgAw+0fIK0GUeovTL8YRssQ3rX2cVUfa8hZElQ==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YwJ0DU1nPBzXDjPkl2XMkIMCq1/TzcKtYnI1D6g+62zwhDt+p/g
 Qrppjw/eeD3Pk+kdC9Bd5S0qQ8TFyRZ6f6rjtcAg9lQVMgWfxm1LuE/jBRr58pxiXQahuzH66Sl
 pEFJeVa2n072C/dfCN393TONYk9E=
X-Gm-Gg: ASbGncumuM0wVvPH8tPhQ3Chp9RVHPx2cQ2iWB5MGv3Er+42bhDDhVU3Psa2+hJ5/aQ
 zi3M4AOpIFXhNqTT8MWHHTrMi4noGNrnz2NA4LgG67MKpPIjfxnT6V5GcywNi5/ZzsFWb5BqNF/
 cayt0Wj3pYi7FCvqFh/rgsSH/xOA==
X-Google-Smtp-Source: AGHT+IGyPjRjiQ6xnDaf3GoNQuA9523Pywlwy03HYAIdZYYknJO1jMYm19pIvDpX2sFqP5EdBJsmao7mGWjb5EV8tIs=
X-Received: by 2002:ac8:7d14:0:b0:476:9e30:a8aa with SMTP id
 d75a77b69052e-476c81b8083mr122016381cf.38.1742117999217; Sun, 16 Mar 2025
 02:39:59 -0700 (PDT)
MIME-Version: 1.0
References: <CAPM58oj1z5ZWit1NzDqjZ8cEqYhXfVes5XjT-4-i1okpJca1fg@HIDDEN>
 <86wmcqwm4l.fsf@HIDDEN> <861puxv11i.fsf@HIDDEN>
 <CAPM58oh9sZZq_tpa6p3pvp6YDAFAND_qEpTpg1hgvFGC1D3Lvw@HIDDEN>
 <86wmcptkcf.fsf@HIDDEN>
In-Reply-To: <86wmcptkcf.fsf@HIDDEN>
From: Richard Copley <rcopley@HIDDEN>
Date: Sun, 16 Mar 2025 09:39:32 +0000
X-Gm-Features: AQ5f1JoCn_nue5fGCqm8PDLuyCP21zmo3szL8D1YKmgPRC6P8c3Nsj1-WkA8yy8
Message-ID: <CAPM58oikr4g020whjtq9U1gajs5LDYsBvhMkuK_gY7i6GxJx5g@HIDDEN>
Subject: Re: bug#76888: 31.0.50; start-process: Spawning child process:
 Invalid argument
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 76888
Cc: michael.albinus@HIDDEN, 76888 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Sun, 16 Mar 2025 at 09:07, Eli Zaretskii <eliz@HIDDEN> wrote:
>
> > From: Richard Copley <rcopley@HIDDEN>
> > Date: Sun, 16 Mar 2025 08:47:35 +0000
> > Cc: michael.albinus@HIDDEN, 76888 <at> debbugs.gnu.org
> >
> > > I'm not sure this is relevant, see below.  Or if it _is_ relevant, I
> > > don't think I understand why the value of shell-file-name in the
> > > "*Async Shell Command*" buffer matters.
> >
> > There are two factors, the combination of which leads to the problem.
> >
> > The first factor is that the value of shell-file-name sometimes gets
> > set buffer-locally in the "*Async Shell Command*" buffer. (This is
> > true for the Tramp code, when the buffer is reused. I don't know if it
> > is meaningful to ask whether it is true for the non-Tramp code.)
>
> If Tramp sets the buffer-local value in the "*Async Shell Command*"
> buffer, it should also set default-directory in that buffer.
>
> > The second factor is that 'async-shell-command' sometimes uses the
> > value of shell-file-name from the "*Async Shell Command*" buffer.
> > (This is true for the non-Tramp code. I don't know if it is true for
> > the Tramp code.)
>
> Please point out the code which uses the value of shell-file-name
> local to the "*Async Shell Command*" buffer.

In 'shell-command' in "simple.el", 'start-process-shell-command'
is called after changing to the "*Async Shell Command*" buffer.

        (let* ((buffer (get-buffer-create
                (or output-buffer shell-command-buffer-name-async)))
                [...])
          [...]
          (with-current-buffer buffer
        [...]
          (setq proc
            (start-process-shell-command "Shell" buffer command)))

Then in the body of 'start-process-shell-command',

  (start-process name buffer shell-file-name shell-command-switch command)

> In any case, since no step in your recipe makes that buffer the
> current buffer, the buffer-local value there should not matter.

No disagreement from me.

> > Which one should we target? I make no recommendation. But, for
> > example, if we target the second factor, we could kill all buffer
> > local variables in the "*Async Shell Command*" buffer somewhere near
> > the beginning of the code path that is followed when
> > 'async-shell-command' is invoked. This would need to be done in the
> > non-Tramp code. I don't know if it would need to be done in the Tramp
> > code.
>
> Buffer-local values should matter only when commands are invoked with
> that buffer the current buffer.  Which part(s) of your recipe do that?

The recipe does not do that. The command 'async-shell-command' is
invoked three times from dired buffers and never from the "*Async
Shell Command*" buffer.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76888; Package emacs. Full text available.

Message received at 76888 <at> debbugs.gnu.org:


Received: (at 76888) by debbugs.gnu.org; 16 Mar 2025 09:07:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 16 05:07:25 2025
Received: from localhost ([127.0.0.1]:45403 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ttjxs-00057N-E6
	for submit <at> debbugs.gnu.org; Sun, 16 Mar 2025 05:07:25 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:49494)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1ttjxp-00055z-Qm
 for 76888 <at> debbugs.gnu.org; Sun, 16 Mar 2025 05:07:22 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ttjxk-0007SR-51; Sun, 16 Mar 2025 05:07:16 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=gHwBslBO6CbVtrSkIXO1dV8CHD25CvYZbof/93Tj0gw=; b=BTiMNcv+UCfa
 fuL++ssn4zUET68px0c3O6MZHp3WBCehp6WqMlUaWlInaIybKvCw2sj9hmpumbtGa6qvlIhmuY1Mz
 nng2F7hpBjqQcSh+UYysjr2GD8FJp8yNz3nE5jxHvOLcbfUUg8zvZUYqrPcBY7fP0Vd7MKyBjQpS5
 t7+Soz0vUR7bgEle4eQBP6zeLaQGolDhFdlwV9g/10KEsvXWHrT4aCmug3wBIF75QVvYPIgJNrLgD
 cI3mybiZAP8WcO5VAxokSQMg52oS2GYsw+enLc4jjpZbSvvFSPe56va2PdulUUcNECFNdtF8/eSum
 ZLw19P2hhsUPjtA0c8VcBQ==;
Date: Sun, 16 Mar 2025 11:07:12 +0200
Message-Id: <86wmcptkcf.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Richard Copley <rcopley@HIDDEN>
In-Reply-To: <CAPM58oh9sZZq_tpa6p3pvp6YDAFAND_qEpTpg1hgvFGC1D3Lvw@HIDDEN>
 (message from Richard Copley on Sun, 16 Mar 2025 08:47:35 +0000)
Subject: Re: bug#76888: 31.0.50; start-process: Spawning child process:
 Invalid argument
References: <CAPM58oj1z5ZWit1NzDqjZ8cEqYhXfVes5XjT-4-i1okpJca1fg@HIDDEN>
 <86wmcqwm4l.fsf@HIDDEN> <861puxv11i.fsf@HIDDEN>
 <CAPM58oh9sZZq_tpa6p3pvp6YDAFAND_qEpTpg1hgvFGC1D3Lvw@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 76888
Cc: michael.albinus@HIDDEN, 76888 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Richard Copley <rcopley@HIDDEN>
> Date: Sun, 16 Mar 2025 08:47:35 +0000
> Cc: michael.albinus@HIDDEN, 76888 <at> debbugs.gnu.org
> 
> > I'm not sure this is relevant, see below.  Or if it _is_ relevant, I
> > don't think I understand why the value of shell-file-name in the
> > "*Async Shell Command*" buffer matters.
> 
> There are two factors, the combination of which leads to the problem.
> 
> The first factor is that the value of shell-file-name sometimes gets
> set buffer-locally in the "*Async Shell Command*" buffer. (This is
> true for the Tramp code, when the buffer is reused. I don't know if it
> is meaningful to ask whether it is true for the non-Tramp code.)

If Tramp sets the buffer-local value in the "*Async Shell Command*"
buffer, it should also set default-directory in that buffer.

> The second factor is that 'async-shell-command' sometimes uses the
> value of shell-file-name from the "*Async Shell Command*" buffer.
> (This is true for the non-Tramp code. I don't know if it is true for
> the Tramp code.)

Please point out the code which uses the value of shell-file-name
local to the "*Async Shell Command*" buffer.

In any case, since no step in your recipe makes that buffer the
current buffer, the buffer-local value there should not matter.

> Which one should we target? I make no recommendation. But, for
> example, if we target the second factor, we could kill all buffer
> local variables in the "*Async Shell Command*" buffer somewhere near
> the beginning of the code path that is followed when
> 'async-shell-command' is invoked. This would need to be done in the
> non-Tramp code. I don't know if it would need to be done in the Tramp
> code.

Buffer-local values should matter only when commands are invoked with
that buffer the current buffer.  Which part(s) of your recipe do that?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76888; Package emacs. Full text available.

Message received at 76888 <at> debbugs.gnu.org:


Received: (at 76888) by debbugs.gnu.org; 16 Mar 2025 08:48:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 16 04:48:53 2025
Received: from localhost ([127.0.0.1]:45341 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ttjfw-0002QM-T1
	for submit <at> debbugs.gnu.org; Sun, 16 Mar 2025 04:48:53 -0400
Received: from mail-qt1-x835.google.com ([2607:f8b0:4864:20::835]:56505)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <rcopley@HIDDEN>) id 1ttjfE-0002JG-1n
 for 76888 <at> debbugs.gnu.org; Sun, 16 Mar 2025 04:48:10 -0400
Received: by mail-qt1-x835.google.com with SMTP id
 d75a77b69052e-476ac73c76fso35908571cf.0
 for <76888 <at> debbugs.gnu.org>; Sun, 16 Mar 2025 01:48:08 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1742114882; x=1742719682; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=bHJ+N+nzMoIvZUJZcKAI626wOmsfck9yaibyD6zjQxg=;
 b=YY6JCKd2K81com8hLxfl1ZolpfrTpzBBiwdVsbg0rUm7b0prqtfSPFouYcp0sww1n8
 8MU3CNS97aqSt4Lr9kHYsjAREPFQKA4of5TmI0CHkdpaXZb0YS+KfcBN3Rk+IVKWSJqm
 tNq2xNcbC9vU9YOvqdPJs5WvpGUGEviqBaNAcC0gIJ3NPHebPDkJ9Oe1vuCExWMWUkkp
 iNQgz2DrldfRWCVgwto1UPU4VLoVH2AYN/RVOZyYmDCP/eI+Fq0jqtfPD4Xufhqd+J8E
 aHCm7LAh3Ymyy2aBDMvdPgqm2/vGFNHMKzj3fYMRWwP5OT8etC871VNfHvfo3mgHdxtM
 P+FQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1742114882; x=1742719682;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=bHJ+N+nzMoIvZUJZcKAI626wOmsfck9yaibyD6zjQxg=;
 b=Yxlr3eomLZwm/rTIV+Cqeo2IIxNW9ALKH6mgZQSsvYGSPB450fGMV/GB22BjcVPwsI
 WrJn0YFG8k7Gh3zCijPqxa8im7+XxNJVFqidceywX73lSN9gI2oNI/ypobQYHC9WsQUs
 u5BvIU6r5ae52YAf4ykjeUuLvxK5XarGjDLZjfV0PQWXoPLuptkqEB4ePSO8rpGh4ezK
 B4/mZTx3fUjSJ0ISxDcm4JWAQwIBAu7kmtHQH0BM4Qf9vN29PWhPHhT4i1v+bdXFfZsf
 aP4L+zHvCWBDD0Av44//MzxgjmizpAkS+gDRIY7H0eQukGslMNvo/PpgtrdR58Luc/uz
 OxfQ==
X-Forwarded-Encrypted: i=1;
 AJvYcCWc+zmbVLTICKy8qf4ZtpJ5ckUlJgUozyIlw1BHrAHvIrbcmQDoxh/grE1q4gPhNkB8IE3pNg==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YzRG39o2m215U691tHrmhw7DhBJHodVj3S2c3vP21hkJmKymP5U
 MPM7wpmwRLdQDiQu+c2uAfoRxNoB17c1lI7Kv0AXUJFDKHiM/tWpokj25G2tr6PStyFBLFRb7RK
 I1nA3J+49W2ZGeyizMj7LZveuyGw=
X-Gm-Gg: ASbGncuSHH4OEaHo/fvSoGn6OsUCkzwSo7fdMkD167fsHf/gRL96yx849HfQh8HAbQU
 gH0kfMUpmYTGb5pN+H68zavXGdVizhHi3Uex00wtb0Apej/m5Wu+eYS0yxfqkuzBttBgfKeujW/
 tc5kgpf3LY0HlwIlnrt2Q6A/T6DQ==
X-Google-Smtp-Source: AGHT+IHn26FhFtMcTBHfOKHcgXJ3gsB1KfN35I5xGF+2l8GaPH8gO7ZhnhH5YXDFks6iMdZIMWb1ywS1+dxQ0F7WH/c=
X-Received: by 2002:a05:622a:1a89:b0:476:add4:d2b7 with SMTP id
 d75a77b69052e-476c81ee0d9mr135539211cf.51.1742114882162; Sun, 16 Mar 2025
 01:48:02 -0700 (PDT)
MIME-Version: 1.0
References: <CAPM58oj1z5ZWit1NzDqjZ8cEqYhXfVes5XjT-4-i1okpJca1fg@HIDDEN>
 <86wmcqwm4l.fsf@HIDDEN> <861puxv11i.fsf@HIDDEN>
In-Reply-To: <861puxv11i.fsf@HIDDEN>
From: Richard Copley <rcopley@HIDDEN>
Date: Sun, 16 Mar 2025 08:47:35 +0000
X-Gm-Features: AQ5f1Jq1G2qsXILsMgIcvf7OakhY13XT_VBiDkGm-UlCcR49pU1l8HO2NsZd4Wc
Message-ID: <CAPM58oh9sZZq_tpa6p3pvp6YDAFAND_qEpTpg1hgvFGC1D3Lvw@HIDDEN>
Subject: Re: bug#76888: 31.0.50; start-process: Spawning child process:
 Invalid argument
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76888
Cc: michael.albinus@HIDDEN, 76888 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Sun, 16 Mar 2025 at 08:21, Eli Zaretskii <eliz@HIDDEN> wrote:
>
> > Cc: 76888 <at> debbugs.gnu.org
> > Date: Sat, 15 Mar 2025 13:48:10 +0200
> > From: Eli Zaretskii <eliz@HIDDEN>
>
> Trying this recipe, I have some questions and observations.
>
> > > From: Richard Copley <rcopley@HIDDEN>
> > > 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.
>
> I'm not sure this is relevant, see below.  Or if it _is_ relevant, I
> don't think I understand why the value of shell-file-name in the
> "*Async Shell Command*" buffer matters.

There are two factors, the combination of which leads to the problem.

The first factor is that the value of shell-file-name sometimes gets
set buffer-locally in the "*Async Shell Command*" buffer. (This is
true for the Tramp code, when the buffer is reused. I don't know if it
is meaningful to ask whether it is true for the non-Tramp code.)

The second factor is that 'async-shell-command' sometimes uses the
value of shell-file-name from the "*Async Shell Command*" buffer.
(This is true for the non-Tramp code. I don't know if it is true for
the Tramp code.)

If we were to arrange for at least one of those factors to be no
longer true, the problem would go away.

Which one should we target? I make no recommendation. But, for
example, if we target the second factor, we could kill all buffer
local variables in the "*Async Shell Command*" buffer somewhere near
the beginning of the code path that is followed when
'async-shell-command' is invoked. This would need to be done in the
non-Tramp code. I don't know if it would need to be done in the Tramp
code.

All of this may also apply to 'shell-command'. I did not investigate.

> > > 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]
>
> This shows the remote file on display.
>
> > > Execute an asynchronous shell command.
> > >
> > > [M-&] echo [RET]
>
> This command should run on the remote host, because the
> default-directory is remote, due to the current-buffer visiting a
> remote file, per the above "C-x C-f" command.
>
> Is that what you see?  Does the "echo" command run on the remote host?

Yes.

> > > 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]
>
> Now the local file is shown in the selected window, and the current
> buffer visits that file, so its default-directory is local.
>
> > > Execute an async shell command.
> > >
> > > [M-&] echo [RET]
>
> This command should run locally, because default-directory is local.
> Is that what you see?

Yes.

> > > An error is signalled, with the message "start-process: Spawning child
> > > process: Invalid argument". (Note, the invalid argument is the
> > > executable name, "/bin/sh").
>
> In my case, the error message dosn't pop up each time, but I do see it
> from time to time.
>
> Michael, does Tramp reuse the value of shell-file-name between shell
> commands, and if so, how does it know whether to reuse or not?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76888; Package emacs. Full text available.

Message received at 76888 <at> debbugs.gnu.org:


Received: (at 76888) by debbugs.gnu.org; 16 Mar 2025 08:21:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 16 04:21:29 2025
Received: from localhost ([127.0.0.1]:45285 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ttjFQ-0006fe-Op
	for submit <at> debbugs.gnu.org; Sun, 16 Mar 2025 04:21:29 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:56502)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1ttjFM-0006eh-Lc
 for 76888 <at> debbugs.gnu.org; Sun, 16 Mar 2025 04:21:25 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ttjFG-00013K-48; Sun, 16 Mar 2025 04:21:18 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=Oe8SAnGmzJ594+ZpWt9r9TNQ7SrgHamXWSbwJNX9Mvk=; b=iZ5p7zyqIFDA
 6CO0T1J/KJyND41TFnxHIY75nyWjy9EE29HwGC71VVZwegLuf9NBhTowNoGl18oU+0jr26KE+TkD5
 D0hP39MKZMa0UgWJYTkVswd1Le8B1Q8QVEYO+0ZL1j5MH15hVA9d36bh2wCL86+BlsdtWQ8ot4c5U
 O+4/+V3jmUNv9D1B3P0yJ+l5fC9YB5yJZ279jjp12KBRlajFaDwdRmubc5UI/680g+p0h5k/rhLd7
 4gPj1mQMg315W4pyjuYq0gMk2c85CgI3FsrGk4osPCkFEyoNUrP3DuLBOJ2kzvowNFbkbt/IRGsk7
 BWzR7xgORiVZJ8tfppfRCQ==;
Date: Sun, 16 Mar 2025 10:21:13 +0200
Message-Id: <861puxv11i.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: rcopley@HIDDEN, michael.albinus@HIDDEN
In-Reply-To: <86wmcqwm4l.fsf@HIDDEN> (message from Eli Zaretskii on Sat, 15
 Mar 2025 13:48:10 +0200)
Subject: Re: bug#76888: 31.0.50;
 start-process: Spawning child process: Invalid argument
References: <CAPM58oj1z5ZWit1NzDqjZ8cEqYhXfVes5XjT-4-i1okpJca1fg@HIDDEN>
 <86wmcqwm4l.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 76888
Cc: 76888 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Cc: 76888 <at> debbugs.gnu.org
> Date: Sat, 15 Mar 2025 13:48:10 +0200
> From: Eli Zaretskii <eliz@HIDDEN>

Trying this recipe, I have some questions and observations.

> > From: Richard Copley <rcopley@HIDDEN>
> > 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.

I'm not sure this is relevant, see below.  Or if it _is_ relevant, I
don't think I understand why the value of shell-file-name in the
"*Async Shell Command*" buffer matters.

> > 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]

This shows the remote file on display.

> > Execute an asynchronous shell command.
> > 
> > [M-&] echo [RET]

This command should run on the remote host, because the
default-directory is remote, due to the current-buffer visiting a
remote file, per the above "C-x C-f" command.

Is that what you see?  Does the "echo" command run on the remote host?

> > 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]

Now the local file is shown in the selected window, and the current
buffer visits that file, so its default-directory is local.

> > Execute an async shell command.
> > 
> > [M-&] echo [RET]

This command should run locally, because default-directory is local.
Is that what you see?

> > An error is signalled, with the message "start-process: Spawning child
> > process: Invalid argument". (Note, the invalid argument is the
> > executable name, "/bin/sh").

In my case, the error message dosn't pop up each time, but I do see it
from time to time.

Michael, does Tramp reuse the value of shell-file-name between shell
commands, and if so, how does it know whether to reuse or not?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76888; Package emacs. Full text available.

Message received at 76888 <at> debbugs.gnu.org:


Received: (at 76888) by debbugs.gnu.org; 15 Mar 2025 11:48:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 15 07:48:22 2025
Received: from localhost ([127.0.0.1]:39293 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ttQ05-0007B1-Uf
	for submit <at> debbugs.gnu.org; Sat, 15 Mar 2025 07:48:22 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:41436)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1ttQ03-0007An-Je
 for 76888 <at> debbugs.gnu.org; Sat, 15 Mar 2025 07:48:19 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ttPzx-0002th-Rb; Sat, 15 Mar 2025 07:48:13 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=l6eXdxarfgoqAjmkFGO7lpUseFx2/km0Z3Pey/4l96Y=; b=Y5y5xuBKi1Tq
 Wh9/2bjw9RkinmQo2ROTTcLgPyMP2K3vceveiD2skYzEoDBm2shtphmO1zZ0hvSnMYrBDWCLhzUY7
 EBMGHW1ZhxbL9UK441oYEqFA+Q7iqSzrMxrpT5W+D1Om+89rL42/w0TxMKxdkAUAEdSqur8LmMKhW
 dIltN+WKNlLYj8koXKtpSCCb4RcQOozZO0ykk0NMzaQjRJ3VhWH2G1X6ZJFC7cr1/YvqvkPCcEaMb
 ODiI/fepDdbTiTBisBni74RDsFRcuSfFQV6TsR0n7ZYNQS65cbWU0QyKTxnRQlG44GjKfrGlrgxPc
 pSKUHKBqBUSraNOc18Ryaw==;
Date: Sat, 15 Mar 2025 13:48:10 +0200
Message-Id: <86wmcqwm4l.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Richard Copley <rcopley@HIDDEN>,
 Michael Albinus <michael.albinus@HIDDEN>
In-Reply-To: <CAPM58oj1z5ZWit1NzDqjZ8cEqYhXfVes5XjT-4-i1okpJca1fg@HIDDEN>
 (message from Richard Copley on Sun, 9 Mar 2025 12:37:56 +0000)
Subject: Re: bug#76888: 31.0.50;
 start-process: Spawning child process: Invalid argument
References: <CAPM58oj1z5ZWit1NzDqjZ8cEqYhXfVes5XjT-4-i1okpJca1fg@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 76888
Cc: 76888 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Richard Copley <rcopley@HIDDEN>
> 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?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76888; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 9 Mar 2025 12:38:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 09 08:38:39 2025
Received: from localhost ([127.0.0.1]:58756 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1trFvS-0000E8-FR
	for submit <at> debbugs.gnu.org; Sun, 09 Mar 2025 08:38:38 -0400
Received: from lists.gnu.org ([2001:470:142::17]:34760)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <rcopley@HIDDEN>) id 1trFvP-0000Ds-3z
 for submit <at> debbugs.gnu.org; Sun, 09 Mar 2025 08:38:35 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <rcopley@HIDDEN>) id 1trFvH-0007Sd-0r
 for bug-gnu-emacs@HIDDEN; Sun, 09 Mar 2025 08:38:27 -0400
Received: from mail-qt1-x835.google.com ([2607:f8b0:4864:20::835])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <rcopley@HIDDEN>) id 1trFvD-0006em-PG
 for bug-gnu-emacs@HIDDEN; Sun, 09 Mar 2025 08:38:25 -0400
Received: by mail-qt1-x835.google.com with SMTP id
 d75a77b69052e-476805acddaso4395681cf.1
 for <bug-gnu-emacs@HIDDEN>; Sun, 09 Mar 2025 05:38:23 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1741523902; x=1742128702; darn=gnu.org;
 h=to:subject:message-id:date:from:mime-version:from:to:cc:subject
 :date:message-id:reply-to;
 bh=raiWYX/R4uhJtJ6wk6Wr8VEKERhsW0qQiDCV4bpOSFw=;
 b=VMe5SdkIstM0BoKxUD5UN67bvZMpszvolPqME9XH4nCSjCxHFYbDL2G8Zm1Ob9XhmB
 8wWF4jXDV1Rne95cpn7fkx1gLFwO53NKtjXi0WPjUe8q0vcQKaB/VbPc08XUbXUUXi7U
 kFxQQDW+OnbobI7hAwKBXHG11jG69hMvskFtYfu+3CVtp9mhlWju3mrQLa2zHE4RisdH
 03iKzKO4EurUDbozRZUKkBj5Q0CWYWo7N09AL7+VDtZiGfcuPtAyqLKzmOQdT+Cbo2Q9
 BGV/nNgg2/YvDozcBHhF8oSUeZh2/S2iBOhl1RXDIkgJ1WcKZ3rJVIAITFxcXr5yYWDy
 xicg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1741523902; x=1742128702;
 h=to:subject:message-id:date:from:mime-version:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=raiWYX/R4uhJtJ6wk6Wr8VEKERhsW0qQiDCV4bpOSFw=;
 b=MfpKq3F//Prpkt+QpyI1OHzy/3G9wmw2lL9A9vl6Qx5oBYIITCpLEox+BXySZvLc67
 qniLB/8rcZthCcbrXHMvOtHHPhy/UK/oK54p+k11Q3yWIdGLguHeBb6PVKMYP2pI4SLm
 NtDkq1yrpZ+DEt3xmmyKNwo4OaZWa4Q2+y901iWZwBY5BCJCLWefyCaSKL7ZNP8OlSZz
 T8f+m5IZcYyNpb/qRGct/JTWCp3Tsq8Nk+nbsJt1nvZslXgxOncHkuQEHhlY+bMWzxYF
 IgYNH6FGsj+eDop44gNGRYPa775bR9+dwZspM/E+WUUiozDyM9BbddhV75L+exa95/WU
 Z3KA==
X-Gm-Message-State: AOJu0YwDsafMHJj+sfEQ34RV9mHpQ+0Ue7u9gvHXj2pgZwfQmvYCo2Hv
 mVlhPd6x5IdKKlblzxtOfOg8y4QkhyM7ea7EwSY+aYLyHdR387n/DwY8r4KQ7+BAXuKXeGCoXze
 u1T2LNFtBxo8Yx0cNsp57wzp2hSA30kz43DI=
X-Gm-Gg: ASbGnctfsO76c44CxCBrjuzFPCdnzr5DODiGAMi25+JMHSaLv8VkcF2vzAyG1bUCehF
 ST0C3nj1uwSpsaKVxOd6CGk8GI0P22cD4fJEB1za69bqR0qRV6ac3mf2qeabYjLxoGg2iIAVIF1
 Pgt3NuJftMiDUZW4SV54L5J9SAQG4BX/CsRrSf
X-Google-Smtp-Source: AGHT+IH1O46VGyTdQaOKlXrpZPHVGrcWcT4myNFFELkMTTJR6kCX0PZTrhCfRjH2+/9fjYJNBHaM+7jWHDG1YNdg4zA=
X-Received: by 2002:a05:622a:144:b0:471:96af:c005 with SMTP id
 d75a77b69052e-4761195a835mr150914371cf.33.1741523901676; Sun, 09 Mar 2025
 05:38:21 -0700 (PDT)
MIME-Version: 1.0
From: Richard Copley <rcopley@HIDDEN>
Date: Sun, 9 Mar 2025 12:37:56 +0000
X-Gm-Features: AQ5f1JoCOD_j4pBhde9uXYxVKzB1gc0rhMuN9WUH2vK6AU4AnsV-XTnJFO_JwL0
Message-ID: <CAPM58oj1z5ZWit1NzDqjZ8cEqYhXfVes5XjT-4-i1okpJca1fg@HIDDEN>
Subject: 31.0.50; start-process: Spawning child process: Invalid argument
To: bug-gnu-emacs@HIDDEN
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=2607:f8b0:4864:20::835;
 envelope-from=rcopley@HIDDEN; helo=mail-qt1-x835.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

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").

In GNU Emacs 31.0.50 (build 1, x86_64-w64-mingw32) of 2025-03-01 built
 on MACHINE
Repository revision: 2095d0fcc686107c2ee25f75983710ca5f4abacf
Repository branch: master
Windowing system distributor 'Microsoft Corp.', version 10.0.19045
System Description: Microsoft Windows 10 Pro (v10.0.2009.19045.5555)

Configured using:
 'configure --config-cache --with-modules --without-pop
 --without-compress-install --with-tree-sitter=ifavailable
 --without-libsystemd --without-dbus --without-gconf --without-gsettings
 --without-mailutils --with-small-ja-dic --with-native-compilation=aot
 --prefix=/mingw64 --build=x86_64-w64-mingw32 'CFLAGS=-O2'

Configured features:
ACL GIF GMP GNUTLS HARFBUZZ JPEG LCMS2 LIBXML2 MODULES NATIVE_COMP
NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XPM ZLIB

Important settings:
  value of $LANG: ENG
  locale-coding-system: cp1252

Major mode: Messages

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  minibuffer-regexp-mode: t
  buffer-read-only: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug lisp-mnt message mailcap yank-media puny
rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util
text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils dired-aux dired dired-loaddefs tramp-cmds
tramp-cache time-stamp tramp-sh comp-run comp-common tramp rx trampver
tramp-integration files-x tramp-message help-mode tramp-compat xdg shell
pcomplete comint ansi-osc ring parse-time iso8601 time-date format-spec
auth-source cl-seq eieio eieio-core cl-macs icons password-cache json
subr-x map byte-opt gv bytecomp byte-compile ansi-color tramp-loaddefs
cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric
uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel
touch-screen dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars
term/common-win tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode lisp-mode prog-mode register
page tab-bar menu-bar rfn-eshadow isearch easymenu timer select
scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors
frame minibuffer nadvice seq simple cl-generic indonesian philippine
cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese composite emoji-zwj charscript
charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure
cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp
files window text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget keymap hashtable-print-readable backquote
threads w32notify w32 lcms2 multi-tty move-toolbar make-network-process
tty-child-frames native-compile emacs)

Memory information:
((conses 16 108744 17611) (symbols 48 9243 0) (strings 32 30108 2194)
 (string-bytes 1 1031459) (vectors 16 16442)
 (vector-slots 8 220843 10978) (floats 8 36 12) (intervals 56 782 25)
 (buffers 992 15))




Acknowledgement sent to Richard Copley <rcopley@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#76888; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 28 Mar 2025 12:45:02 UTC

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