Stopped listening to environment variable changes

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
good_alias
Junior Member
Junior Member
Posts: 20
Joined: 2006-03-01, 21:33 UTC
Contact:

Stopped listening to environment variable changes

Post by *good_alias »

From 7.50 beta 1 to beta 3 has stopped picking up changed environment variables.

For example if you execute cd %TEMP% on tc command lline you will jump to your temp folder.
If you then change your temp environment variable to a new value, and executed the same command beta 1 (and previous versions) would use the new value.
But beta 3 uses the old value.



Tested on both XP and Windows 7
User avatar
Sombra
Power Member
Power Member
Posts: 811
Joined: 2005-12-27, 22:23 UTC
Location: Zaragoza, Spain

Post by *Sombra »

I can confirm this issue in pb3 when:

The environment variable is set for the "user", then it is not updated for the environment variable in current "process" (totalcmd)
Naturally the updated variable is taken into account when TC is closed and reopened.

Tested in Win XP SP3 and UpdateEnv=3
I can read English, but... I write like Tarzan. (sorry)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48093
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I will check that - so far I couldn't reproduce it.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48093
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I could reproduce the problem now - it's because TC has a Unicode main window now, so the notification is using Unicode too...
Author of Total Commander
https://www.ghisler.com
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

I just tried the %TEMP% on the command line and it opened up Windows Explorer. That's not right, is it?
chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/laden

How do I un-overwrite all my data?

User of Total Commander
#60471 Single user license
User avatar
petermad
Power Member
Power Member
Posts: 14812
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2Boofo
That's not right, is it?
Yes it is - use cd %TEMP% to open in TC.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

Duh on me. Thanks for straightening me out. ;)
chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/laden

How do I un-overwrite all my data?

User of Total Commander
#60471 Single user license
User avatar
Sombra
Power Member
Power Member
Posts: 811
Joined: 2005-12-27, 22:23 UTC
Location: Zaragoza, Spain

Post by *Sombra »

Seems works as in previous version of TC in TC 7.5 pb4.
The environment variable changed for the current user, is updated for the process (totalcmd) instantly.

Fixed.
I can read English, but... I write like Tarzan. (sorry)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48093
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Great, thanks for trying it!

good_alias: Can you confirm it?
Author of Total Commander
https://www.ghisler.com
good_alias
Junior Member
Junior Member
Posts: 20
Joined: 2006-03-01, 21:33 UTC
Contact:

Post by *good_alias »

Works fine now
Thank you!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48093
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks for noticing it!
Author of Total Commander
https://www.ghisler.com
Post Reply