What steps will reproduce the problem?
1. Run on a vob with strange characters in filenames, by "strange" I mean
anything which is special to the shell: spaces, quotes, etc.
What is the expected output? What do you see instead?
Here is an example:
2010/05/18 18:26:58: ERROR: Command failed:
/usr/rational/clearcase/linux_x86/bin/cleartool descr -fmt
'%Nd@@@%En@@@%Vn@@@%o@@@%l@@@%a@@@%m@@@%u@@@%Nc@@@
' ./build/eBizUtil/BQI Notes from ChunKit.doc@@/main/1
Exit code: 1
cleartool: Error: Unable to access "./build/eBizUtil/BQI": No such file or
directory.
cleartool: Error: Unable to access "Notes": No such file or directory.
cleartool: Error: Unable to access "from": No such file or directory.
cleartool: Error: Unable to access "ChunKit.doc@@/main/1": No such file or
directory.
I tried fixing this by changing this line like so:
787c787
< cmd = CLEARTOOL + " descr -fmt '" + HISTORY_FORMAT + "' " +
ccrevfile
---
> cmd = CLEARTOOL + " descr -fmt '" + HISTORY_FORMAT + "' '" +
ccrevfile + "'"
But then I ran into a problem later on:
2010/05/19 11:47:27: ERROR: Command failed: /usr/rational/clearcase/linux_x86/bin/cleartool descr -fmt '%Nd@@@%En@@@%Vn@@@%o@@@%l@@@%a@@@%m@@@%u@@@%Nc@@@
'
'./users/Ruchi/IMTool_code_review/Code/imtool/admin/process_today's_bom.jsp@@/ma
in/5'
Exit code: 2
/bin/sh: -c: line 1: unexpected EOF while looking for matching `''
/bin/sh: -c: line 2: syntax error: unexpected end of file
What version of the product are you using? On what operating system?
SVN latest (r9) on RHEL4
Please provide any additional information below.
Clearly some more careful escaping of special characters needs to take place
(obviously my change was a short-lived hack) or the commands need to be issues
such that the shell does not get involved.
Original issue reported on code.google.com by
trent.a....@gmail.comon 10 Jun 2010 at 10:57