Program name: Difference between revisions

Content deleted Content added
SImplified
Line 449:
 
q("no")</lang>
 
=={{header|REXX}}==
 
REXX does not support the use of arg(0) to access the program name. A workaround is to use a shell wrapper script to obtain the provide the invocation name of the wrapper:
 
<lang sh>#!/bin/sh
rexxbit.rexx $0 $*</lang>
 
Here is a rexx script that makes use of this:
 
<lang rexx>say "The program is called " arg(1)</lang>
 
=={{header|Ruby}}==