Empty environment variables are disabled or broken in TC 9.2.
Can't find any information and reason for disabling in changelog.
Hope it's a bug, and previous behavior will be restored. Hard to use TC in current state

Moderators: Hacker, petermad, Stefan2, white
Yes. Now TC doesn't distinguish.ghisler(Author) wrote: 2018-07-27, 08:03 UTC TC doesn't distinguish between empty and non-existing environment variables,
Empty environment variables can exist.ghisler(Author) wrote: 2018-07-27, 08:03 UTCyou cannot set empty environment variables as a user, neither with cmd.exe nor via Control Panel - System:
It's possible to fix such behavior with escape character.ghisler(Author) wrote: 2018-07-27, 08:03 UTCThe % character is a perfectly valid character in a name.
So TC cannot know whether Results80%to100%.xls is the right name, or %to100% needs to be replaced.
Code: Select all
Run, Program%test%.exe
Code: Select all
Run, Program`%test`%.exe
I wasn't aware that it was different in TC 9.12. I can change it, but how do I set system-wide empty environment variables? Are they really occuring in the wild?Yes. Now TC doesn't distinguish.
But TC 9.12 (and early versions) understand empty environment variables.
Code: Select all
setx test1 ""
Code: Select all
If %SYSINFO_OSARCH% = 32 Then
SetEnv OS_EMPTY_OR_64
SetEnv OS_EMPTY_OR_64_SLASH
Else
SetEnv OS_EMPTY_OR_64 64
SetEnv OS_EMPTY_OR_SLASH_64 \64
EndIf
Code: Select all
Program: %COMMANDER_PATH%\Tools\SomeTool%OS_EMPTY_OR_64%\SomeTool.exe
Parameters: ...
Code: Select all
Program: %COMMANDER_PATH%\Tools\SomeOtherTool\SomeOtherTool%OS_EMPTY_OR_64%.exe
Parameters: ...