It's all about the answers!

Ask a question

scm command line (3.0.1.1) errors out because of whitespace in stream name


Vivek Iyer (15212527) | asked Aug 01 '12, 12:35 p.m.
edited Aug 01 '12, 12:42 p.m.
This is happening on Linux. The scm command line returns an ambiguous selector error when there are whitespace characters in the stream name.

We are using a groovy script to invoke scm via the Java ProcessBuilder. The command is being passed as a string array, which means that the stream name is a cell in the array.

This works okay on Windows, but is failing on Linux. Is this a defect with the RTC SCM CLI? Renaming the stream to strip out whitespace characters is not an option. Escaping whitespace characters with "\" works fine on Linux but breaks the command line on Windows.

List stream components
	 command: scm --non-interactive list components  -u **** -P **** -r https://rtc/jazz "xxxx yyyy zzzz Stream"
	 Ambiguous selector "" matched multiple items:
	 Possible matches:
	   (3279) "xxxx yyyy zzzz Workspace"
	   (3280) "dddd eeee ffff Workspace"
	   (2916) "dddd - eeee gggg Stream Workspace"
	   (2898) "DataWarehouseSyncWorkspace"
	
FYI - there is only one unique stream with the name that is being queried. Running this on Windows confirms it.

Thanks,

Vivek

One answer



permanent link
sam detweiler (12.5k6195201) | answered Aug 01 '12, 3:03 p.m.
are u going to wrap the comandline in a shell script? If so, on the .sh on *IX add the code to escape the spaces


Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.