Hello,
if you run the query from within cleartool, these ought to work
find . -version Patch=='"1861"' -print # no spaces around ==
find . -version Patch==\"1861\" -print # no spaces around ==
find . -version 'Patch == "1861"' -print
find . -version attr_sub(Patch,==,\"1861\") -print # no spaces !
Note: a string value is s.th. between quotes ("), but cleartool gobbles one level of quotes or apostrophes.
A query is one argument, so no spaces, or wrap it in quotes or apostrophes.
HTH,
-Wolfgang
"Hornich, IT BK Zust, DD" wrote:
> Hello there!
>
> I want to find all versions or elements with the attribute "Patch" and the value (character!) "1861". The search for the attribute-type Patch works with:
>
> find . -version 'attype_sub(Patch)' -print
>
> But I don't find the right query-syntax for search for attribute-values. I tried following (with help from the reference manual, chapters find and query language) but nothing works:
>
> find . -version 'attr_sub(Patch == 1861)' -print
> find . -version "attr_sub(Patch == "1861")" -print
> find . -version 'attr_sub(Patch == '1861')' -print
> find . -version "attr_sub(Patch == 1861)" -print
> find . -version Patch == "1861" -print
> find . -version Patch == '1861' -print
> find . -version 'attr_sub(Patch,==,'1861')' -print
>
> At every example there's the error-message: " Error: Syntax error in query (near character 16)....".
>
> Does anybody know a solution?
>
> (We work with CC 3.2.1 on NT 4.0).
>
> Best regards,
>
> Yvonne Hornich
> Deutsche Post
> Service-Niederlassung IT-Systeme BK Dresden
> AE Geographische Systeme, Zustellung
> Projekt GeoRoute
> Fon: 0351/4567-329
> Fax: 0351/4567-264
> mailto:Y.Hornich@DeutschePost.de
>
> ------------------------------------------------------------------------
>
> Part 1.2 Type: application/ms-tnef
> Encoding: base64
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
This archive was generated by hypermail 2b29 : Sun May 06 2001 - 00:22:31 EDT