Program name: Difference between revisions

→‎{{header|AWK}}: {{incorrect}}
(→‎{{header|Euphoria}}: Euphoria example added)
(→‎{{header|AWK}}: {{incorrect}})
Line 7:
 
=={{header|AWK}}==
{{incorrect|AWK|[[nawk]] 20100523, [[gawk]] 3.1.7 and [[mawk]] 1.3.3 all use ARGV[0] to report the name of the awk interpreter, not the name of the script. Is there any AWK implementation where ARGV[0] reports the name of the script?}}
 
By convention ARGV[0] contains the name of the script being utilized. However, this behaviour is not reliable and it is not consistent across systems. Some systems may report the name of the awk interpreter, rather than the name of the script and pathname components may be included.
Anonymous user