Program name: Difference between revisions

Content added Content deleted
(Removed bash dependency)
Line 695: Line 695:
Getting the program name is tricky. When interpreted, the script name will be printed. When compiled, the executable name will be printed.
Getting the program name is tricky. When interpreted, the script name will be printed. When compiled, the executable name will be printed.


<lang scheme>#!/bin/bash
<lang scheme>#!/bin/sh
#|
#|
exec csi -ss $0 ${1+"$@"}
exec csi -ss $0 ${1+"$@"}