On Thu Nov 30 11:03:15 2023 +0000, Zebediah Figura wrote:
> If you remove the line "_putenv("cat=")" from the test, it fails the
> same way on Windows. This implies that native is detecting when the
> environment has been modified *back* to its initial state and undoing
> the reallocation in that case. That strikes me as a little insane; do we
> care about implementing that behaviour?
I don't see such behavior. Could you please describe in more detail what have you tested (preferably attaching tests diff)? It's unlikely that native restores to initial environment in such case.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/4552#note_54383
Visual Studio's native tool command prompt uses rare for loop variables: %%1, %%2. This test covers this case.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55401
--
v4: cmd: added support of FOR loop's rare var names (%%1), fixed expansion of outer var loop name inside inner loop
cmd: added support of FOR loop's rare var names (%%1), fixed expansion of outer var loop name inside inner loop
* cmd: added support of FOR loop's rare var names (%%1), fixed expansion of outer var loop name inside inner loop
cmd: added support of for loop's rare var names (%%1), fixed expansion of outer var loop name inside inner loop
cmd: added test for rare for loop vars
https://gitlab.winehq.org/wine/wine/-/merge_requests/4504