From: Galen Boyer <galendboyer@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: "Process shell finished" on Windows
Date: Mon, 09 Jan 2023 13:42:36 -0500 [thread overview]
Message-ID: <ecd0dvcz7n35yb.fsf@boyer.boyerenterprises.org> (raw)
I posted this on reddit /r/emacs. Took me awhile to find nntp news
server to use.
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.
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 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>
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 <DIR> .
12/17/2022 12:34 AM <DIR> ..
12/17/2022 12:34 AM <DIR> DataSets
12/17/2022 12:34 AM <DIR> DBT
12/17/2022 12:34 AM <DIR> External
12/17/2022 12:34 AM 1,181 pull_request_template.md
12/17/2022 12:34 AM <DIR> 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 <DIR> 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>
Any ideas on what I should do, look into, debug?
Thanks in advance!
--
Galen Boyer
next reply other threads:[~2023-01-09 18:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-09 18:42 Galen Boyer [this message]
2023-01-13 14:49 ` "Process shell finished" on Windows Galen Boyer
2023-01-13 15:10 ` Eli Zaretskii
2023-01-13 22:04 ` Galen Boyer
2023-01-13 22:42 ` Galen Boyer
2023-01-14 11:31 ` Eli Zaretskii
-- strict thread matches above, loose matches on Subject: below --
2022-12-22 17:16 Galen Boyer
2022-12-23 7:05 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ecd0dvcz7n35yb.fsf@boyer.boyerenterprises.org \
--to=galendboyer@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.