Yes, exactly, I have a directory named c:\d
If I change it to c:\e the result is /e instead of /d :-)
In the meantime I have noticed at least for exe file compilation
there is a solution with the TAWK compiler option "-ee":
TAWK manual, page 97:
"-ee (This option is two letters). Disables filename expansion of
filenames in the ARGV array of the compiled program. The filename
patterns are left in the ARGV array, allowing you to do your own
filename expansion, if you so desire. Note that a compiled TAWK
program still processes filname patterns in each element of the
ARGV array when it comes to read and process that filename, so
this option does not actually disable the use of filename patterns
in the compiled program, it just makes the original filename patterns
show up in the ARGV array. As usual, if your program changes any
element of the ARGV array before TAWK processes that element as a
filename, TAWK processes the changed ARGV element rather than the
original."
There is also an "-eo" option which seems useful: Manual, page 98:
"-eo (This option is two letters). Suppresses default command line
processing of options by the compiled TAWK program. Specifically,
the compiled TAWK program will ignore any -F, -v, -w or — options
in its command line. The -eo and -ee options can be combined, for
example: -eoe"
So, at least for TAWK there aren't any problems if I compile
specialtasktest.awk to a native Windows exe file:
# specialtasktest.awk
BEGIN {
print ARGV[1]
}
>awkcw -xe -ee specialtasktest.awk
or
>awkcw -xe -eo -ee specialtasktest.awk
=> specialtasktest.exe
>specialtasktest.exe /?
=> /?