tab ("get", "path") returns a drive letter without a trailing backslash

Features wanted...
Post Reply
Evolve
Posts: 353
Joined: 27 Feb 2020 09:48

tab ("get", "path") returns a drive letter without a trailing backslash

Post by Evolve »

itematpos()
c:
c:\windows

tab ("get", "path")
c:\
c:\windows

It should either return both with a trailing backslash:
c:\
c:\windows\

or neither:
c:
c:\windows

PS: Unless there is a strong reason for that inconsistency...
PPS: Actually, this is more of a observation/question than a "wish". Like "I've noticed this inconsistency, is there any reason for that? Or if not, maybe it should be changed". This should probably be moved into "Questions" section.

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: tab ("get", "path") returns a drive letter without a trailing backslash

Post by admin »

Hmm, I'm unhappy about this. The rule is that variables and functions in XY should return paths without a trailing slash. So this is a bug. But if I fix it, it will likely break old user code. :( Any ideas?

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: tab ("get", "path") returns a drive letter without a trailing backslash

Post by highend »

In this case, you've set a rule. Follow it. Scripters must adapt^^
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: tab ("get", "path") returns a drive letter without a trailing backslash

Post by admin »

I'll classify this as a bug. Scripters will be happy about the fix.

Post Reply