On Sat, 26 Jun 2021, Sven Schreiber wrote:
Am 25.06.2021 um 13:51 schrieb Sven Schreiber:
> Am 24.06.2021 um 21:09 schrieb Allin Cottrell:
>> On Thu, 24 Jun 2021, Sven Schreiber wrote:
>>
>>> Am 24.06.2021 um 02:38 schrieb Allin Cottrell:
>>>>
>>>> <windows>
>>>> C:\WINDOWS\system32\cmd.exe /c "c:\users\cottrell\printarg.exe"
\
>>>> "foo" 1>"c:\users\cottrell\print.out"
>>>> 'c:\users\cottrell\printarg.exe" "foo' is not
recognized as an internal
>>>> or external command, operable program or batch file.
>>>> </windows>
>>
>> I found a discussion of this on stackoverflow. The weird and wonderful
>> way of getting this to work is to pass the /s flag to cmd.exe and wrap
>> the entire command line in an additional pair of quotes:
>>
>> cmd.exe /s /c ""some.exe" "some arg" > "some
out""
>>
>> That's now in git.
>
> Aha?! Will test this on Windows as soon as it's propagated into the
> snapshots.
Initial testing didn't show any change (= still fails), but I have no
way to tell whether the fix above is already in the snapshot (dated June
25th), although the time stamps would seem to suggest it.
Just to be sure I've put up a new snapshot (regular, not gtk3)
today, and tested it on Windows 10. Here's my test script:
<hansl>
remove("c:\users\cottrell\print.out")
! "c:\users\cottrell\printarg.exe" "foo" >
"c:\users\cottrell\print.out"
eval readfile("c:\users\cottrell\print.out")
</hansl>
printarg.exe is a trivial C program which prints the argument it
received to stdout. The (redirected) output file is created OK.
Allin