title: Does Chicken Scheme have an equivalent to Perl's $0?
body: <p>How can I reliably get the script name in Chicken Scheme?</p>
  
  <p>It seems that -ss eats up the script name, so it's not visible unless I use dot slash to run my scripts.</p>
  
  <p>scriptedmain.scm:</p>
  
  <pre><code>#!/usr/bin/env csi -q
  
  (display (command-line-arguments))
  (display "\n")
  (exit)
  </code></pre>
  
  <p>Trace:</p>
  
  <pre><code>$ ./scriptedmain.scm 
  (-q ./scriptedmain.scm)
  wonko:Desktop andrew$ csi -ss scriptedmain.scm 
  ()
  </code></pre>