Skip to main content

Questions tagged [shell]

Questions relating to commands for passing single command lines to shell sub-processes, running a shell interactively with input and output to an Emacs buffer, and for running a shell in a terminal emulator window.

Filter by
Sorted by
Tagged with
0 votes
0 answers
41 views

I am using Emacs 31.0.50 in Windows. I have a shell command string which includes some unicode characters in its arguments. I can run this command in Windows command prompt without any problems. But I ...
T. E.'s user avatar
  • 1
1 vote
1 answer
49 views

Problem I'm using Emacs with projectile and vterm for my development workflow. I've configured vterm to use screen as its shell: (setq vterm-shell "screen") I've created a function that ...
Jason Hunter's user avatar
  • 1,246
0 votes
1 answer
50 views

In Emacs, I want to compile a C++ file, then run it from a shell buffer. I can define a compile function to have: (compile (concat "g++ " buffer-file-name " -o a.out && ./a.out&...
ginjaemocoes's user avatar
  • 2,009
0 votes
1 answer
95 views

While researching how to remove C and C++ style comments from a file, I stumbled on the following two comments by Alan Mackenzie from almost 20 years ago: I can assure you, as half of the Emacs CC ...
Gao's user avatar
  • 101
1 vote
1 answer
64 views

None of the executables inside C:/Users/Me/AppData/Local/Microsoft/WindowsApps can be run from the command line under eshell. The error I receive when trying to run any of these executables looks like:...
StackExchanger's user avatar
1 vote
2 answers
111 views

Just the other day I did $ emacs -nw file1 Then later on I did ^Z to suspend it, and was back in the shell. And then I wanted to do $ emacsclient -n file2 and have file2 there, ready in emacs when I ...
Dan Jacobson's user avatar
0 votes
0 answers
131 views

I was having trouble launching cargo with M-x compile, and IIUC this meant the compile didn't had cargo in its path. This meant process-environment didn't contain cargo, and this in turn meant it didn'...
Alessandro Bertulli's user avatar
0 votes
1 answer
98 views

To recreate the problem: Create an .bashrc_emacs file : # -*- shell-script -*- export PATH="$PATH":~/SYNCHRO/bin/ # put the path to where net.ip.private is export BOOTTIME=$(sys.boottime) ...
ychaouche's user avatar
  • 229
1 vote
1 answer
88 views

t I've hit a small snag that I'm hoping to get some insights on. When I call a function or alias using M-x shell-command, I encounter shell errors that don't appear when I run the same commands ...
ychaouche's user avatar
  • 229
0 votes
1 answer
92 views

I'm trying to use shell asynchronously with named sessions, but it doesn't work: #+begin_src sh echo "a" #+end_src #+RESULTS: : a #+begin_src sh :async echo "a" #+end_src #+...
vslavkin's user avatar
0 votes
0 answers
138 views

Sometimes in a shell session (i.e. with M-x shell) a command will output a whole ton of output very quickly and I'll want to stop it with C-c C-c. In a normal terminal, this works just fine, but with ...
John Graham's user avatar
0 votes
1 answer
125 views

Working on source code in Emacs 28.2 on Mac, shell command M-! works as expected, and the command runs fine. The command M-x shell successfully launches a shell window, but then after running a shell ...
user44126's user avatar
0 votes
0 answers
92 views

I've recently found nushell and made it my default shell, and in many ways it's great, but the syntax does differ a bit from bash, and that causes substitutions to be wrong when I use dired-do-shell-...
Alexander Praehauser's user avatar
1 vote
3 answers
370 views

I wish there was a hook, that every time I did M-x shell it would send "cd " . (pwd) . "\n" to an already running M-x shell, and then switch windows to that shell. That way I ...
Dan Jacobson's user avatar
1 vote
2 answers
67 views

I'm using a program that expects to be able to read a character from the terminal as soon as it's pressed - i.e. presumably sets the terminal options so it's unbuffered*. I don't seem to be able to ...
John Graham's user avatar

15 30 50 per page
1
2 3 4 5
26