<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><font face="serif">Some of you have reported that when you try to
        run your lisp code as an executable it dumps into the SBCL
        environment.  I figured out what was going on.</font></p>
    <p><font face="serif"></font><br>
    </p>
    <p dir="auto" data-sourcepos="1:1-1:337">On cobra for some reason
      some of the Lisp probrams think that they were created in a
      Windows or DOS environment and have DOS end of line terminators
      (Carraige return followed by a line feed). For that reason when
      you run your code as a script it runs until it gets to the
      carraige return and then the next character is a line feed which
      dumps it into the SBCL development environment.</p>
    <p dir="auto" data-sourcepos="3:1-3:84">If you run the linux "file"
      command on your file you will get something like this...</p>
    <div class="gl-relative markdown-code-block js-markdown-code">
      <pre data-canonical-lang="" class="code highlight js-syntax-highlight language-plaintext dark" data-sourcepos="5:1-8:3" id="code-7" lang="plaintext"><code><span class="line" id="LC1" lang="plaintext">cobra:/scratch/pounds/Prog01/Lisp % file HappyNums.lisp </span>
<span class="line" id="LC2" lang="plaintext">HappyNums.lisp: Lisp/Scheme program, ASCII text, with CRLF line terminators</span></code></pre>
      <br>
    </div>
    <p dir="auto" data-sourcepos="10:1-10:37">to fix this, run the
      command dos2unix</p>
    <div class="gl-relative markdown-code-block js-markdown-code">
      <pre data-canonical-lang="" class="code highlight js-syntax-highlight language-plaintext dark" data-sourcepos="12:1-17:3" id="code-8" lang="plaintext"><code><span class="line" id="LC1" lang="plaintext">cobra:/scratch/pounds/Prog01/Lisp % dos2unix HappyNums.lisp </span>
<span class="line" id="LC2" lang="plaintext">dos2unix: converting file HappyNums.lisp to Unix format </span>
<span class="line" id="LC3" lang="plaintext">cobra:/scratch/pounds/Prog01/Lisp % file HappyNums.lisp </span>
<span class="line" id="LC4" lang="plaintext">HappyNums.lisp: Lisp/Scheme program, ASCII text</span></code></pre>
      <br>
    </div>
    <p dir="auto" data-sourcepos="19:1-19:181">Notice that the "with
      CRLF line terminators" message is gone. You should now be able to
      run your code in SBCL as an executable without it dropping into
      the development environment.</p>
    <div class="moz-signature">-- <br>
      <b><i>Andrew J. Pounds, Ph.D.</i></b><br>
      <i>Professor of Chemistry and Computer Science</i><br>
      <i>Director of the Computational Science Program</i><br>
      <i>Mercer University, Macon, GA 31207 (478) 301-5627</i></div>
  </body>
</html>