Here's a question for anybody who currently has access to the TAWK source code (i.e., the guys who periodically post here about having obtained and are maintaining a Windows version of TAWK) and anyone else knowledgeable on the subject.
TAWK has the usual system() function which is, of course, basic AWK, but it also has a "spawn()" function, which is documented as running a program "directly", without invoking "the command interpreter" (in Windows-speak, this means CMD.EXE). But it is not very well documented, in terms of how exactly the given string is parsed. spawn() is documented as having 3
forms:
On Monday, February 21, 2022 at 7:12:24 AM UTC-5, Kenny McCormack wrote:
Here's a question for anybody who currently has access to the TAWK source >> code (i.e., the guys who periodically post here about having obtained and >> are maintaining a Windows version of TAWK) and anyone else knowledgeable on >> the subject.
TAWK has the usual system() function which is, of course, basic AWK, but it >> also has a "spawn()" function, which is documented as running a program
"directly", without invoking "the command interpreter" (in Windows-speak, >> this means CMD.EXE). But it is not very well documented, in terms of how
exactly the given string is parsed. spawn() is documented as having 3
forms:
Yes, it uses createProcess() to spawn the process. Command line arguments are >split apart in the usual way.
But again, my real, underlying question is: How well understood is it what Windows does?
On 2022-02-21, Kenny McCormack <gazelle@shell.xmission.com> wrote:
But again, my real, underlying question is: How well understood is it what >> Windows does?
It's perfectly well understood. In Windows, the command line is a single >character string, which the target process must parse to retrieve
arguments. This requires escaping in order to represent significant
spaces, and literal escapes and so it goes. It creates problems due to >subtle differences in the algorithms, in their handling of escapes.
Sysop: | DaiTengu |
---|---|
Location: | Appleton, WI |
Users: | 793 |
Nodes: | 10 (1 / 9) |
Uptime: | 39:45:41 |
Calls: | 11,106 |
Calls today: | 3 |
Files: | 186,086 |
Messages: | 1,751,473 |