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: Sat, 16 Mar 2024 10:21:14 +0200 Message-ID: <86il1m7fk5.fsf@gnu.org> References: <86h6h99hse.fsf@gnu.org> <86bk7gahe2.fsf@gnu.org> <86a5mz8xte.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8539"; 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 Sat Mar 16 09:22:48 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 1rlPJX-00022r-7c for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 Mar 2024 09:22:47 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rlPJD-0004PA-6w; Sat, 16 Mar 2024 04:22:27 -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 1rlPJB-0004Ox-Uj for bug-gnu-emacs@gnu.org; Sat, 16 Mar 2024 04:22:25 -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 1rlPJB-00066d-MP for bug-gnu-emacs@gnu.org; Sat, 16 Mar 2024 04:22:25 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rlPJl-0002Ah-S3 for bug-gnu-emacs@gnu.org; Sat, 16 Mar 2024 04:23:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Mar 2024 08:23:01 +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.17105773258260 (code B ref 69795); Sat, 16 Mar 2024 08:23:01 +0000 Original-Received: (at 69795) by debbugs.gnu.org; 16 Mar 2024 08:22:05 +0000 Original-Received: from localhost ([127.0.0.1]:54766 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rlPIr-00029A-D6 for submit@debbugs.gnu.org; Sat, 16 Mar 2024 04:22:05 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39258) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rlPIl-00028a-Sa for 69795@debbugs.gnu.org; Sat, 16 Mar 2024 04:22:03 -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 1rlPI4-0005xX-99; Sat, 16 Mar 2024 04:21: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=tPwdzSu7I4+in5q55Ii/4x+PGn2+gZ2JgIpvjPku1hY=; b=cNZqQcWoV1W/ zF1XjeDL0/X+kv0SZV59FHPwMhaIGY19nTXmVSo5xwesLlU3HZWTGlZlgHpAnWia3FlUofeFTp5Re Ptzt9hv2geKIUBC6ebQkJC9rkTDQj18dY32VXyhD1K/wotuSW19WkZaOiFwKbuNZeTtuDramZtjT9 6Hgwvl2CvUCAV43kRyNaHU3UwACLMgJc9Cv07iK0G9OqPyFJiExDsHxN7umGnq/nfb1YR2Vul6cmy IDVW+o6D3NSyFb51nq4SynWoPe6J+WCtcom0VHpiD+bTRhEYq44F5yUP4Q/C5uZXHugaRPTRMbVjx synCLejUsUt8/0SuswQLIA==; 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:281710 Archived-At: > From: awrhygty@outlook.com > Cc: 69795@debbugs.gnu.org > Date: Sat, 16 Mar 2024 12:52:19 +0900 > > > So let's start from the beginning: can you show a recipe, starting > > from "emacs -Q", where you invoke GDB from Emacs, and cmdproxy (or > > some other sub-process) exits? > > I found that setting PATH make the difference. > Start emacs -Q, type 'M-x shell RET', > and input following command lines. > set PATH=c:\msys64\mingw64\bin\;c:\msys64\usr\bin\;%PATH% > c:\msys64\mingw64\bin\gdb.exe > q > Then cmdproxy.exe exits automatically. Please show the value of PATH after "set PATH" above. Like this: c:\tmp>set PATH (I have a very different MinGW directory tree here, but I tried to do something equivalent to what you do above, and couldn't reproduce it: I get placed at the cmd.exe prompt, as expected.) And once again: it is not cmdproxy that exits, it's cmd.exe. cmdproxy will not exit until the process it started, in this case cmd.exe, exits. Btw, why do you end each element of PATH with a backslash '\' ? This is not required. (I don't think it's part of your problem, but still.)