File: //usr/share/doc/jed/html/jed014.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<meta name="generator" content="hevea 2.35">
<link rel="stylesheet" type="text/css" href="jed.css">
<title>Shells and Shell Commands</title>
</head>
<body >
<a href="jed013.html"><img src="previous_motif.svg" alt="Previous"></a>
<a href="index.html"><img src="contents_motif.svg" alt="Up"></a>
<a href="jed015.html"><img src="next_motif.svg" alt="Next"></a>
<hr>
<h2 id="sec31" class="section">13 Shells and Shell Commands</h2>
<p>The default binding to execute a shell command and pump the output to a
buffer is <span style="font-variant:small-caps">Esc !</span>. <span style="font-weight:bold">jed</span> will prompt for a command line and spawn a
subprocess for its execution.</p><p>Strictly speaking, <span style="font-weight:bold">jed</span> does not support interactive subprocesses.
However, <span style="font-weight:bold">jed</span> includes <span style="font-weight:bold">S-Lang</span> code that “emulates” such a
subprocess. It may invoked by typing <code class="verb">shell</code> at the <code class="verb">M-x</code>
minibuffer prompt. A window will be created with a buffer named
<span style="font-family:monospace">*shell*</span> attached to it. Any text entered at the system dependent
shell prompt will be executed in a subprocess and the result stuffed back
in the shell buffer. Don’t try to execute any commands which try to take
over the keyboard or the screen or something undesirable may happen.
Examples of types of stupid commands are spawning other editors, logging
in to remote systems, et cetera. Even <span style="font-family:monospace">chdir</span> is stupid since its
effect is not permanent. That is,</p><pre class="verbatim"> > cd ..
> dir
</pre><p>will not do what might naively be expected. That is, the two commands
above are not equivalent to the single command <span style="font-family:monospace">dir ..</span>.</p>
<hr>
<a href="jed013.html"><img src="previous_motif.svg" alt="Previous"></a>
<a href="index.html"><img src="contents_motif.svg" alt="Up"></a>
<a href="jed015.html"><img src="next_motif.svg" alt="Next"></a>
</body>
</html>