ZTree.com  | ZEN  | About...  

 Index   Back

[Bug] %4.%5 on a directory is not empty, but '.'   [Zeta]

By: Hartmut Schneider     Germany  
Date: Nov 15,2019 at 03:09
In Response to: [Zeta] v2.4.191 Now Available! (Kim Henkel)

Some of my F9 Menu scripts use "if [%4.%5] == []" to determine if launched from Tree or File window.
Could work because when in Tree window, %4 and %5 are both empty.
In addition, if you use the term %4.%5, ZTree expanded this to an empty string, i.e. without the user-entered dot in between.

Since v2.4.189, ZTree does no more echo a null string, but echoes the user-entered dot:
The command 'echo %4.%5' does echo '.'

Is it feasible with not too much effort to remove this user-entered dot when both parameters before and after it are empty?

Could as well be of value in John's ZEP 'New Batch Parameters',
see
http://www.ztw3.com/forum/forum_entry.php?id=122507
"However, ZTree is already removing some user-specified characters when necessary.
One example is the removal of the period from %4.%5 when there is no extension."


Sincerely, Hartmut

82 views      
 

Messages in this Thread

 
94,666 Postings in 11,937 Threads, 348 registered users, 15 users online (0 registered, 15 guests)
Index | Admin contact |   Forum Time: Dec 14, 2019 - 2:21 am EST  |  Hits:29,408,918  (557 Today )
RSS Feed