Description
There is a difference in the output of the Windows tasks which contain a directory in the name, some of these have double escaped
\\
|
Given how all our Support tools run on Unix based systems, we should standardise all Windows tasks to use
\\
|
Looking into this issue further, it seems that the winquote_path function within the script is not working as intended. For example, consider the part of cbcollect_info which collects the memcached.log file:
WindowsTask("Memcached logs",
|
"cd " + winquote_path(read_guts(guts, "memcached_logs_path")) + " && " +
|
"for /f %a IN ('dir memcached.log.* /od /tw /b') do type %a",
|
log_file="memcached.log"),
|
When compared to the header of the actual memcached.log collected:
==============================================================================
|
Memcached logs
|
cd "D:\Program Files\Couchbase\Server\var\lib\couchbase\logs" && for /f %a IN ('dir memcached.log.* /od /tw /b') do type %a
|
==============================================================================
|
We can see that the output produced has not had its single \ replaced by a double one.