ZTree.com  | ZEN  | About...  

 Index   Back

[Bug] Control-Batch misplaces quotes where no spaces between parameters   [Zeta]

By: Hartmut Schneider     Germany  
Date: Jan 24,2019 at 03:09
In Response to: [Bug] Control-Batch misplaces quotes where no spaces between parameters (Peter Shute)

Confirmed.
I tested these variations:

With mask "%1_%a_%d":
D:\added_sdh\ZT-related\test\Ctrl-Batch_misplaces_quotes_(Peter_Shute)\Ctrl-Batch.TXT_.a.._ 2019-01-24 8:08:12
"D:\added_sdh\ZT-related\test\Ctrl-Batch_misplaces_quotes_(Peter_Shute)\Print Use.pdf_.a.._ 2019-01-24 8:01:09"

With mask "%1 %a %d":
- this one is expanded correctly
D:\added_sdh\ZT-related\test\Ctrl-Batch_misplaces_quotes_(Peter_Shute)\Ctrl-Batch.TXT .a.. 2019-01-24 8:15:07
"D:\added_sdh\ZT-related\test\Ctrl-Batch_misplaces_quotes_(Peter_Shute)\Print Use.pdf" .a.. 2019-01-24 8:01:09

With mask "%1%a%d":
D:\added_sdh\ZT-related\test\Ctrl-Batch_misplaces_quotes_(Peter_Shute)\Ctrl-Batch.TXT.a.. 2019-01-24 8:16:55
"D:\added_sdh\ZT-related\test\Ctrl-Batch_misplaces_quotes_(Peter_Shute)\Print Use.pdf.a.. 2019-01-24 8:01:09"

With mask "%4.%5_%d":
Ctrl-Batch.TXT_ 2019-01-24 8:18:09
"Print Use.pdf_ 2019-01-24 8:01:09"

With mask "%2:%3%4.%5_%d":
D:\added_sdh\ZT-related\test\Ctrl-Batch_misplaces_quotes_(Peter_Shute)Ctrl-Batch.TXT_ 2019-01-24 8:19:11
"D:\added_sdh\ZT-related\test\Ctrl-Batch_misplaces_quotes_(Peter_Shute)Print Use.pdf_ 2019-01-24 8:01:09"


Not easy to code correctly, I guess.
Needs some rule like:
If % parameters are consecutively out of the set [123456enpr] (see help chapter 3.4.1),
and no other parameters (a,d,m,s,v) are in between,
then (after resolving) surround the consecutive ones with double quotes "if they contain spaces
or any other character that may be interpreted as a separator in Windows (,;&=)"
(help 3.4.1, last-but-one para).

Best regards,
Hartmut

77 views      
Thread locked
 

Messages in this Thread

 
94,382 Postings in 11,909 Threads, 347 registered users, 7 users online (0 registered, 7 guests)
Index | Admin contact |   Forum Time: Jul 24, 2019 - 4:26 am EDT  |  Hits:28,176,477  (2,629 Today )
RSS Feed