Educating the world

Our blog has over 10,000 readers a month

« Integrating a better file comparer than clearcase offersWhat is Project Voldemort? What is Voldemort? »

2 comments

Comment from: SaravanaKumar V [Visitor]
SaravanaKumar V

Small Correction …

I guess the command should be …

cleartool find . -cview -version !“lbtype(MY_LABEL)” -print

03/08/11 @ 18:38
Comment from: davidnewcomb [Member]  
admin

Not really, in this particular case the two commands are equivalent.
However, I suspect you are treating the quotes as brackets which is not correct. The quotes are to help the command line interpreter work out where the parameter boundaries are and have nothing to do with the expression syntax.
Both of the following commands return a list of everything as they check for the presence of the label and not the label:

cleartool find . -cview -version !"lbtype(MY_LABEL) || lbtype(MY_LABEL)" -print
cleartool find . -cview -version "!lbtype(MY_LABEL) || lbtype(MY_LABEL)" -print

I think you should keep the quotes on the outside to avoid confusion and it also allows you to add additional spaces to clarify the expression:

cleartool find . -cview -version "! (lbtype(MY_LABEL) || lbtype(MY_LABEL))" -print

04/08/11 @ 10:02

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
  
(For my next comment on this site)
(Allow users to contact me through a message form -- Your email will not be revealed!)