Command-line arguments: Difference between revisions

m
(S-Lang, run via slsh or jed -batch)
Line 1,619:
foreach a (__argv)
print(a);
</lang>When thea script is run as a parameter to slsh, __argv does not
include slsh. __argv[0] is simply the name of the script.
 
Line 1,629:
command-line for the editor itself, with __argv[0] == jed or /path/to/jed
or the equivalent.
 
Interestingly, when a file is run in [x/w]jed [via, e.g., evalbuffer()]
__argv[0] is set to the command for [x/w]jed, followed of course by any
other args jed was originally executed with.
 
=={{header|Sather}}==
Anonymous user