From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#69795: 29.1; cmdproxy.exe exits automatically after executing MSYS2 commands Date: Thu, 14 Mar 2024 13:25:37 +0200 Message-ID: <86h6h99hse.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12875"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 69795@debbugs.gnu.org To: awrhygty@outlook.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 14 12:27:07 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 1rkjEo-0003Cl-EZ for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Mar 2024 12:27:06 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rkjEI-0007VI-PP; Thu, 14 Mar 2024 07:26:36 -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 1rkjEB-0007Uq-2C for bug-gnu-emacs@gnu.org; Thu, 14 Mar 2024 07:26: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 1rkjEA-0005LB-QF for bug-gnu-emacs@gnu.org; Thu, 14 Mar 2024 07:26:26 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rkjEk-0005Cy-DD for bug-gnu-emacs@gnu.org; Thu, 14 Mar 2024 07:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Mar 2024 11:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69795 X-GNU-PR-Package: emacs Original-Received: via spool by 69795-submit@debbugs.gnu.org id=B69795.171041558519963 (code B ref 69795); Thu, 14 Mar 2024 11:27:02 +0000 Original-Received: (at 69795) by debbugs.gnu.org; 14 Mar 2024 11:26:25 +0000 Original-Received: from localhost ([127.0.0.1]:48493 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rkjE8-0005Bu-L0 for submit@debbugs.gnu.org; Thu, 14 Mar 2024 07:26:24 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56420) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rkjE7-0005Be-8o; Thu, 14 Mar 2024 07:26:23 -0400 Original-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 ) id 1rkjDR-00051Z-Tg; Thu, 14 Mar 2024 07:25:41 -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=kjcGLyksqU3uLJ1XWBy2Z1RaE53a+9OzznuKnf7WqDA=; b=Oceo3r8LQ7Va Ti9PYXCUv62sFROY9zcyssFoI9fbQ8YPB9s7NxJUl4Q8tZTvhWxtftOGFcVugrLcqAK7p3j7qsXnM vD3YyUg9IzCIEXcMkosGysuhfwv4cioNe6ofo0LECpCo6Q5qd+PMtScn4xFcX06pfW1zxWLpB8HpW tOAxp6zs1IPB3K/iXwLdR0vkflHxtr4zY8QmvijNhMcMTaGVshwpzl9Qwju1LcXV247NliiAKVPV9 p1urSn513b1MnZS6saGgh62CaEqGfx4qf+fdsQWb1+HdcgJqgn0PdtH3tzmLKjmrRyyHwHBB1Zoum AUfCy6Yjv4+/sW6r0qFb0g==; In-Reply-To: (awrhygty@outlook.com) 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:281615 Archived-At: tags 69795 notabug thanks > 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. 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".