TitleExtraText with environment variable shows variable name in title if empty

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
diopter
Junior Member
Junior Member
Posts: 31
Joined: 2017-02-02, 06:42 UTC
Location: Germany

TitleExtraText with environment variable shows variable name in title if empty

Post by *diopter »

[Configuration]
TitleExtraText=$%myTCproject%

If myTCproject is empty or not existing, TC shows "%myTCproject%" in title,
should show nothing.
User avatar
Gral
Power Member
Power Member
Posts: 1467
Joined: 2005-01-26, 15:12 UTC

Re: TitleExtraText with environment variable shows variable name in title if empty

Post by *Gral »

I'm not absolutetly sure - maybe user want display some string surrounded by percent signs?
Also - why user define in ini non-existent environment variable ?
User avatar
Dalai
Power Member
Power Member
Posts: 9386
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: TitleExtraText with environment variable shows variable name in title if empty

Post by *Dalai »

Well, CMD does the same thing. This

Code: Select all

echo %foobar%
outputs exactly that text, %foobar%, not an empty string.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48075
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TitleExtraText with environment variable shows variable name in title if empty

Post by *ghisler(Author) »

I also prefer to keep it the way it is now.
Author of Total Commander
https://www.ghisler.com
Post Reply