From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: awrhygty@outlook.com Newsgroups: gmane.emacs.bugs Subject: bug#69795: 29.1; cmdproxy.exe exits automatically after executing MSYS2 commands Date: Fri, 15 Mar 2024 00:56:02 +0900 Message-ID: References: <86h6h99hse.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27760"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 69795@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 14 16:56:54 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rknRt-00072u-Rt for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Mar 2024 16:56:54 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rknRY-0005Ta-3v; Thu, 14 Mar 2024 11:56:32 -0400 Original-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 ) id 1rknRT-0005TB-4O for bug-gnu-emacs@gnu.org; Thu, 14 Mar 2024 11:56:27 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rknRS-0000fH-Sd for bug-gnu-emacs@gnu.org; Thu, 14 Mar 2024 11:56:26 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rknS2-0007GT-Ce for bug-gnu-emacs@gnu.org; Thu, 14 Mar 2024 11:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: awrhygty@outlook.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Mar 2024 15:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69795 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 69795-submit@debbugs.gnu.org id=B69795.171043181427910 (code B ref 69795); Thu, 14 Mar 2024 15:57:02 +0000 Original-Received: (at 69795) by debbugs.gnu.org; 14 Mar 2024 15:56:54 +0000 Original-Received: from localhost ([127.0.0.1]:50450 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rknRt-0007G5-Gx for submit@debbugs.gnu.org; Thu, 14 Mar 2024 11:56:53 -0400 Original-Received: from mail-tyzapc01olkn2095.outbound.protection.outlook.com ([40.92.107.95]:40243 helo=APC01-TYZ-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rknRo-0007Fp-KU for 69795@debbugs.gnu.org; Thu, 14 Mar 2024 11:56:52 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N9eDMvNPyE0JKjUZZOQvjLmCZDIsQSjMZoj7hW6tWEqEQ8rr/FXnKp4qdDGg3lQp6CT//lLnYbm4HvXl0Gqx/SpH9sedq7i7NHeX2JvNRzs6QenNstwU/UB+IYtKkZGhPq6TskiFF9O7f/zhEEkCnGRgIIBJI9mjaR77lgmWuPCG0pwIZhyLVczOjXrlPmWw+XMkTIoXRSoaC/EhMWV13a8/mvyEDN+xyriBDuaYbKHO9zEJ+3x8ejxh1AYbj94DBpvgNa68sCUX9Khgw7FHy1sX+ylPoKRC8Z7q2BKkyLzyP+LqVLP+KYHydv0U1wWsuynC35NCocWqCWjXLVVqbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=A64r+6Qi1fOmxAW29FkjEvKzGwoo022bSIIpR8Fc+bQ=; b=Saqq8gUNymyx1lt4aQnQrgrt67xYgkx0KZQ7TYDkLgNH+H614xx9wgH/FDk7A/3KD2B75T6eQueXj01nWl5R3VFnTqnaFYdgZ8rasho/h449aKMKKApL4OXhzP1kkJ4Fl0BROOEglkAh/b8Sp+cMGCvsZIZUzYCmvocPUrnCfjy7m0PGXXkHi0WzmbkOjbjdQcGTvtKyzFxgs7EmD8Hp0koZfD3F4ZFc6krZ76TNtAE6s/gnsMhGNVNdTGDWQmSXcNzhYHYiQxO34cdq1pdGMWe3OGdtym2VXYaCwKNGc5fCGIhgUg1NYcFCWSyjVWCt1DnqBJWxsRMT2yK09bfGOA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=A64r+6Qi1fOmxAW29FkjEvKzGwoo022bSIIpR8Fc+bQ=; b=A3D8jmIroVIgu5Ot16F/JKuEjlgo/JNx1ePM2fnU6aKGqr13m/vmYID1RWjbCb2j+bW3i9trLoqtbP5Mg7l/3+J9BGvMvxIp+p7OYh9Qc2PLI040+QHCZS0hxgRZRKLW+07WN6TSsYebzWZw1ixR4DoA++KWbLeQY51pKq+V68b4sDJB7OuAJNgtphzkIt2Q9jcZc9mo4WkUaimQDsbjBZz4Hwao4HFhCXuImx3Nrbmnzgtu8o11AZSDeImsFtqg7AO7LnmXqflQFiFVh/QgW9ScguNOUEIiJrupIxYwrHVRBLMQ6e0dASzHaxePT34f+eb+nQjeI1KcWFXFXIWPGw== Original-Received: from TYZPR01MB3920.apcprd01.prod.exchangelabs.com (2603:1096:400:30::11) by SEZPR01MB4421.apcprd01.prod.exchangelabs.com (2603:1096:101:49::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.19; Thu, 14 Mar 2024 15:56:04 +0000 Original-Received: from TYZPR01MB3920.apcprd01.prod.exchangelabs.com ([fe80::690a:1426:4f0f:57b1]) by TYZPR01MB3920.apcprd01.prod.exchangelabs.com ([fe80::690a:1426:4f0f:57b1%3]) with mapi id 15.20.7386.020; Thu, 14 Mar 2024 15:56:03 +0000 In-Reply-To: <86h6h99hse.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 14 Mar 2024 07:25:42 -0400") X-TMN: [zBQIUbrackxBjDD4pl9VtW6y8U/dObza] X-ClientProxiedBy: OS3P286CA0079.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:1f6::6) To TYZPR01MB3920.apcprd01.prod.exchangelabs.com (2603:1096:400:30::11) X-Microsoft-Original-Message-ID: <86o7bgn6y5.fsf@outlook.com> X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR01MB3920:EE_|SEZPR01MB4421:EE_ X-MS-Office365-Filtering-Correlation-Id: 35ae5a6d-e64e-4782-aa43-08dc443f4071 X-MS-Exchange-SLBlob-MailProps: 9IecXKUgicBYWBBfHFFod/pmO0g+fZQy9szmbyuzpOcc0A913Ts8fRphZWTFIyTRuc2QGA+Wm3/ig+Cqxn73N7mBEH6qBjgpzSLB04R4gBuxliF+X3DhDUYZ4F5dkc1IYlfdFb14o0HUSZ+6zqHspNbSPZzmPUyBm6120c4kYLUrdU7PeuPuL5g1XfwuNOgGrKRI4r/npJxZXNTinMGBc0qq1cuo/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V73J/zodDax95P8qYVam9bzMMKZfyyjHgDNNNjcZfLZ80B+mRm346zZ0UFTWoJwbDLbAjLrvc4Z X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: CuThbHycAo15m0d1tlyLm/s/FeuzZrksmLFSK2qkwiqT+L1uVdMKvQbTGe0ISQ1AWZsv6s6sPXx0abuvsXIez0zzwYne+9wryJYb6stFwStOm02RvyXSlmRpBogomgJuRnnzElZdo/NpzrKoEOqvj5lSWPAv6roz6VG6zCQjcd2ydWVDDvLQ7M68CFIJy4YnehTXvx7tEK7h7VrJnTclkuPLjF/xk02Cz2lsAKUcYVoR1lMhE4sCnl+/OmvgFEhLTv70l24bl36fKjOSLT4aYZ4uRTlsdfJXMwfOLIr7Pc+fty+mP77Wktn903sLdJwrZXY4DzIYX3tJxN4Qm7OmIa4TCN5Ds3i/UWue8mTi93LW+2v2XC/O7W+Kxa50vOJRmey46gDfJmpPyiNZLkwsuJRTdxDl3nHl64jN+ImYLzUui/PuOGSn4mZU7CUDAZTcWNpyHjrwDZ4vTnLSy9RzZqWISVhEPEzypsHekwPHWOXmEzerAk8cxq+sWNUPz+pLAtXhFPd6c0VXW75tFRpF8f3Y9Ice0NUImRjxL1x8rTHTTNCLLr0JCkeEmCLtX313JRouKHtCyAwa+RdWS9dx1TLtDZEtcaKUhTQwhD3wEPTPMKDsRS2U0A+/WAx4fmxTHKvHTGM0vuQoQRbZaNB/4EkA7QEehtBQh2xrq0KzKoOepymFBvdMHmMAMhAPbPi5BkHNrOcsJuHKvj9JObjdfAuhj5WC5NFDv3AYP3jkC5zXm+nnRP3nNUP6ee yI/YZ22qSgKirwHVfLgsmKfOX4AJuznfE+uEdCNo6N1kEEGwmi94FB0vuVjsLuUuJ5civKYF/1D+oiUyqPDKh8pFOYHor1LI4p X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 35ae5a6d-e64e-4782-aa43-08dc443f4071 X-MS-Exchange-CrossTenant-AuthSource: TYZPR01MB3920.apcprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Mar 2024 15:56:03.7914 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR01MB4421 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:281620 Archived-At: Eli Zaretskii writes: >> From: awrhygty@outlook.com >> Date: Thu, 14 Mar 2024 19:55:27 +0900 >> >> >> I have installed MSYS2 commands. >> When executing some MSYS2 commands in shell-mode buffer, >> cmdproxy.exe exits unintentionally. >> >> The log below has two prompt strings('c:\tmp>'), but the second one is >> displayed with "Process shell finished" simultaneously. > > This is not an Emacs bug. MSYS2 programs are subtly incompatible with > the native Windows build of Emacs, and some of those incompatibilities > are indeed in the area of running subprocesses and capturing their > output. In particular, cmdproxy tries hard to accommodate Cygwin and > MSYS programs, but is rarely used with them, and no one stepped > forward to maintain such a combination and keep in good working order > as Cygwin and MSYS evolve. Another bunch of problems is in the area > of text encoding and decoding: Cygwin and MSYS use UTF-8 by default, > something native Windows doesn't yet support well enough. It is > possible that the problem you show was due to this latter issue, since > 'ls' displays a non-ASCII file name there. Replacing 'ls -ld .' with 'ls -d .', which outputs only '.', cmdproxy.exe exits, too. Replacing 'ls -d .' with 'ls -d . < nul' does not make cmdproxy.exe exit. > If you want to run MSYS or Cygwin programs from Emacs, my suggestion > is to use the Cygwin build of Emacs. There are two configurations for > that: either use the Cygwin X server, or use the w32 "toolkit"; the > latter possibility has the look-and-feel very similar to the native > Windows build, so maybe you will prefer it. > > Other than that, running MSYS programs from a native build of Emacs > should be considered "not really supported". Is calling MSYS2 commands from #'start-process or #'call-process not recommended? I only needed gdb, another binary will do. But I do not know where to get a reliable gdb binary run with emacs shell-mode.