Re: [cciug] assign string with special characters to attribute value

From: Wolfgang Laun (Wolfgang.Laun@alcatel.at)
Date: Wed Jan 26 2000 - 02:12:28 EST


>

Torsten,

there is the issue of passing one (1) argument though cmd.exe even when it
contains spaces. This is achieved by quoting with "...". The contents of this
string (as seen by cleartool, after the command processor has removed the
outer level of quoting) should be a string, again surrounded by quotes.
Clearly, one cannot write ""a b c"", so the *inner* quotes have to be
protected, and this is done by prefixing them with '\'. So:

clearcase mkattr test "\"a & b --> c\"" test.txt

Regards,
-Wolfgang

> Hi there,
>
> has anybody an idea how to assign a string of special characters and space
> characters (e.g. "a & b --> c") to an attribute (ClearCase 3.2.1, NT)?
>
> According to the reference manual I tried out
> clearcase mkattr test \"a & b --> c\" test.txt@@
> as well as
> clearcase mkattr test \""a & b --> c"\" test.txt@@
>
> Both commands do not work.
>
> Funny, because
> clearcase mkattr test \"a&b-->c\" test.txt@@
> does work with strings without space characters as well as
> clearcase mkattr test \""a and b results in c"\" test.txt@@
> does work with strings without special characters.
> The combination of special characters and space characters seems to be the
> problem.
>
> Thanks in advance for your help!
>
> Torsten
>
> Dr.-Ing. Torsten Berger
> Robert Bosch GmbH - K8/EWG
> phone (+49) 711 811 33844
> fax (+49) 711 811 2850
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>



 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



This archive was generated by hypermail 2b29 : Sun May 06 2001 - 00:22:37 EDT