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',
"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


Messages in this Thread

94,801 Postings in 11,952 Threads, 348 registered users, 9 users online (0 registered, 9 guests)
Index | Admin contact |   Forum Time: Apr 4, 2020 - 7:02 am EDT  |  Hits:30,535,858  (1,714 Today )
RSS Feed