Jump to content

cm cat --file option inconsistencies (Win7)


u2468

Recommended Posts

FYI: Single quotes don't work with spaces in path.  May want to put that in the cli help.

 

This works (no spaces in path):

 

>cm cat f1.txt#cs:12 --file=C:\Users\joe\zzz.txt

 

This doesn't work and the error doesn't seem to match the problem: (spaces in path)

 

>cm cat f1.txt#cs:12 --file=C:\Users\joe\My Documents\zzz.txt
The specified revision was not found Documents\zzz.txt

 

Single quotes don't work (spaces in path).

 

>cm cat f1.txt#cs:12 --file='C:\Users\joe\My Documents\zzz.txt'
The specified revision was not found Documents\zzz.txt'
Error: The given path's format is not supported.
 

This works with spaces in path.

 

>cm cat f1.txt#cs:12 --file="C:\Users\joe\My Documents\zzz.txt"

Link to comment
Share on other sites

Hi!

 

I'll share the wrong error message with the team, thanks.

 

But yes, in windows if you want to have spaces in the path you need to use the quotes. Simple quotes will just fail.

>dir 'c:\Program Files'
The filename, directory name, or volume label syntax is incorrect.
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...