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.help Subject: Re: "Process shell finished" on Windows Date: Fri, 23 Dec 2022 09:05:38 +0200 Message-ID: <83ili28urh.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9520"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 23 08:06:43 2022 Return-path: Envelope-to: geh-help-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 1p8c8h-0002Jd-0A for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 23 Dec 2022 08:06:43 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p8c80-00011i-73; Fri, 23 Dec 2022 02:06:00 -0500 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 1p8c7u-0000zK-9S for help-gnu-emacs@gnu.org; Fri, 23 Dec 2022 02:05:54 -0500 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 1p8c7s-0008NT-H4 for help-gnu-emacs@gnu.org; Fri, 23 Dec 2022 02:05:53 -0500 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=WPTSxodUkMSgC7Oxq7opY1aOBWehMJ8G3FkBguWLSrg=; b=aAXhX+GATuPL ux0n4B/Dkvi9RdDuFj+M9wCeclKMF8425oOsahBvVZan6edcylgUYw7L+2hkKU6ZB+NQ4sc8BVHM4 yjrbUjtJKN0CkugGRBOKU12totO5j2ryOD4vzsZf5rE3PtPaUW6A0Wz1CMrSYslOr+FPqNdzpqe6v WTXzf19XQmM9K/oYsEaoqsOs5FUs7yB6K0lQQRSBjyds1jr7mmQ4RVjDxVTkIAWv4jZlyo/o3C8Et 7ttdFDZP+w7nY7CJJlAH7SxG15DbaNSfRPMwiX83/xSXrUM8q+ANqe8q+SWkhhMOiA0BKurs9Fc/U ZNGm2er51DLe0jxPbR+7Lg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p8c7r-0007ie-11 for help-gnu-emacs@gnu.org; Fri, 23 Dec 2022 02:05:52 -0500 In-Reply-To: (message from Galen Boyer on Thu, 22 Dec 2022 12:16:14 -0500) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:141911 Archived-At: > From: Galen Boyer > Date: Thu, 22 Dec 2022 12:16:14 -0500 > > I am on Windows 10 Enterprise running Emacs 27.2 but this also happens > on Emacs 28.2. M-x shell and now I have a buffer running shell. I then > issue a command that calls some script/executable etc. It runs > successfully but then when it is complete I see that the command.com > process has been killed. (On Windows 10, it isn't command.com, it is cmd.exe.) > What I'm showing here is calling cygwins ls. > > c:\GITHUB\edm>ls -la > ls -la > total 30 > drwxrwx---+ 1 CHARLES+boyer CHARLES+boyer 0 Dec 17 00:34 . > drwxrwx---+ 1 CHARLES+boyer CHARLES+boyer 0 Dec 20 10:46 .. > drwxrwx---+ 1 CHARLES+boyer CHARLES+boyer 0 Dec 19 14:18 .git > drwxrwx---+ 1 CHARLES+boyer CHARLES+boyer 0 Dec 17 00:34 DBT > drwxrwx---+ 1 CHARLES+boyer CHARLES+boyer 0 Dec 17 00:34 DataSets > drwxrwx---+ 1 CHARLES+boyer CHARLES+boyer 0 Dec 17 00:34 External > drwxrwx---+ 1 CHARLES+boyer CHARLES+boyer 0 Dec 17 00:34 Python > -rwxrwx---+ 1 CHARLES+boyer CHARLES+boyer 35 Dec 17 00:34 README.md > drwxrwx---+ 1 CHARLES+boyer CHARLES+boyer 0 Dec 17 00:34 Terraform > -rwxrwx---+ 1 CHARLES+boyer CHARLES+boyer 1181 Dec 17 00:34 > pull_request_template.md > -rwxrwx---+ 1 CHARLES+boyer CHARLES+boyer 18 Dec 17 00:34 silly.txt > > c:\GITHUB\edm> > Process shell finished > > So, then I issue an M-x shell and get it back > > c:\GITHUB\edm> > Process shell finished > Microsoft Windows [Version 10.0.19044.2364] > (c) Microsoft Corporation. All rights reserved. > > c:\GITHUB\edm> > > This just started happening but I've been using Emacs on Windows for years > with the M-x shell as one of my main reasons I'm using it on Windows. I > cannot pinpoint anything that might have caused this new behaviour. > > I originally thought that something about cygwin was an issue. But it > also happens when I call other executables, but not all of them. For > example, if I execute windows scripts, it is fine. > > c:\GITHUB\edm>dir > dir > Volume in drive C is OS > Volume Serial Number is F228-1278 > > Directory of c:\GITHUB\edm > > 12/17/2022 12:34 AM . > 12/17/2022 12:34 AM .. > 12/17/2022 12:34 AM DataSets > 12/17/2022 12:34 AM DBT > 12/17/2022 12:34 AM External > 12/17/2022 12:34 AM 1,181 pull_request_template.md > 12/17/2022 12:34 AM Python > 12/17/2022 12:34 AM 35 README.md > 12/17/2022 12:34 AM 18 silly.txt > 12/17/2022 12:34 AM Terraform > 3 File(s) 1,234 bytes > 7 Dir(s) 183,900,532,736 bytes free > > c:\GITHUB\edm> > > When I execute something like python, it is fine as well. > > c:\GITHUB\edm>cd Python/ > cd Python/ > > c:\GITHUB\edm\Python>python terra.py --help > python terra.py --help > usage: terra [-h] [-V] [-O] [-P] [-S] envName > > Spew commands for spinning up projects > > positional arguments: > envName > > options: > -h, --help show this help message and exit > -V, --vmbool Do we need to spinup a VM > -O, --vmonlybool Just the commands for VM > -P, --printfunctionnamebool > Print the function names at the beginning of the > commands > -S, --sbxbool Is this a sandbox? > > c:\GITHUB\edm\Python> > > But here is another call that exhibits this behaviour: > > c:\GITHUB\edm>bq version > bq version > This is BigQuery CLI 2.0.83 > > c:\GITHUB\edm> > Process shell finished > > As above, I'll then have to issue M-x shell to get command prompt back Is bq, whatever it is, also a Cygwin program? If so, maybe post this on the Cygwin mailing list. Because I cannot reproduce this here, using a native port of ls and other programs. If you use Cygwin program, why don't you use a Cygwin build of Emacs, btw?