mawk 1.3.4 20240622 for DOS (Announce)
> Ok, got the same result with MS-DOS 6.22.
>
> I guess the problem is related to long filenames. Open Watcom encloses the
> contents of the COMSPEC variable in double quotes, appends the cmd tail (
> without quotes ) and finally calls CreateProcess() with this string. The HX
> emulation code more or less copies this string to the CMDLINE environment
> variable. MS-DOS 7.1 can handle this, but obviously MS-DOS 6.22 gets
> confused by the quotes.
Thanks for your analysis!
I installed 4dos 8.00 on FreeDOS 1.3. Now when i run your test2w.exe example, it gives the expected argc=3.
Complete thread:
- mawk 1.3.4 20240622 for DOS - bencollver, 15.08.2024, 03:27 (Announce)
- mawk 1.3.4 20240622 for DOS - Rugxulo, 15.08.2024, 06:57
- mawk 1.3.4 20240622 for DOS - bencollver, 15.08.2024, 16:27
- mawk 1.3.4 20240622 for DOS - Rugxulo, 15.08.2024, 16:40
- mawk 1.3.4 20240622 for DOS - bencollver, 15.08.2024, 17:33
- mawk 1.3.4 20240622 for DOS - Rugxulo, 16.08.2024, 04:21
- mawk 1.3.4 20240622 for DOS - bencollver, 16.08.2024, 04:45
- mawk 1.3.4 20240622 for DOS - Oso2k, 16.08.2024, 15:27
- mawk 1.3.4 20240622 for DOS - Rugxulo, 25.08.2024, 01:09
- mawk 1.3.4 20240622 for DOS - Japheth, 25.08.2024, 07:04
- mawk 1.3.4 20240622 for DOS - Rugxulo, 16.08.2024, 04:21
- mawk 1.3.4 20240622 for DOS - bencollver, 15.08.2024, 17:33
- mawk 1.3.4 20240622 for DOS - Rugxulo, 15.08.2024, 16:40
- mawk 1.3.4 20240622 for DOS - bencollver, 20.08.2024, 03:35
- mawk 1.3.4 20240622 for DOS - Japheth, 20.08.2024, 13:27
- mawk 1.3.4 20240622 for DOS - bencollver, 21.08.2024, 00:38
- mawk 1.3.4 20240622 for DOS - Rugxulo, 21.08.2024, 12:50
- mawk 1.3.4 20240622 for DOS - Japheth, 21.08.2024, 17:02
- mawk 1.3.4 20240622 for DOS - bencollver, 21.08.2024, 18:55
- mawk 1.3.4 20240622 for DOS - Rugxulo, 21.08.2024, 23:25
- mawk 1.3.4 20240622 for DOS - bencollver, 22.08.2024, 02:09
- mawk 1.3.4 20240622 for DOS - Japheth, 23.08.2024, 00:55
- mawk 1.3.4 20240622 for DOS - bencollver, 23.08.2024, 03:08
- mawk 1.3.4 20240622 for DOS - Japheth, 23.08.2024, 08:14
- mawk 1.3.4 20240622 for DOS - bencollver, 23.08.2024, 17:34
- mawk 1.3.4 20240622 for DOS - Japheth, 23.08.2024, 19:22
- mawk 1.3.4 20240622 for DOS - bencollver, 23.08.2024, 19:53
- mawk 1.3.4 20240622 for DOS - Japheth, 03.09.2024, 21:26
- mawk 1.3.4 20240622 for DOS - bencollver, 23.08.2024, 19:53
- mawk 1.3.4 20240622 for DOS - Japheth, 23.08.2024, 19:22
- mawk 1.3.4 20240622 for DOS - bencollver, 23.08.2024, 17:34
- mawk 1.3.4 20240622 for DOS - Japheth, 23.08.2024, 08:14
- mawk 1.3.4 20240622 for DOS - bencollver, 23.08.2024, 03:08
- mawk 1.3.4 20240622 for DOS - Japheth, 23.08.2024, 00:55
- mawk 1.3.4 20240622 for DOS - bencollver, 22.08.2024, 02:09
- mawk 1.3.4 20240622 for DOS - Rugxulo, 21.08.2024, 23:25
- mawk 1.3.4 20240622 for DOS - bencollver, 21.08.2024, 18:55
- mawk 1.3.4 20240622 for DOS - bencollver, 21.08.2024, 00:38
- mawk 1.3.4 20240622 for DOS - Japheth, 20.08.2024, 13:27
- mawk 1.3.4 20240622 for DOS - bencollver, 15.08.2024, 16:27
- mawk 1.3.4 20240622 for DOS - bencollver, 24.08.2024, 04:55
- mawk 1.3.4 20240622 for DOS - Rugxulo, 24.08.2024, 13:34
- mawk 1.3.4 20240622 for DOS - bencollver, 24.08.2024, 18:05
- mawk 1.3.4 20240622 for DOS - Rugxulo, 24.08.2024, 13:34
- mawk 1.3.4 20240622 for DOS - Rugxulo, 15.08.2024, 06:57