It's all about the answers!

Ask a question

Trying to use .bset env "VAR...


Sunil Jagarlamudi (111) | asked Apr 14 '11, 4:52 a.m.
I am tryiing to use the following in a step and it gives me cleartool desc error

.bset env "VAR=`perl -e "qx(cleartool desc -fmt %An stream:STREAM@\\pvob"`"

and I get the error cleartool: Error: Object not selected... and it gives me cleartool describe help.

However, if I use lsstream -s instead of desc -fmt.... it seems to work fine.
I am not able to get desc -fmt to work.

Also is there an easy way if I dont' have the adapters to print the existing baseline in the stream in an email.

I don't want to save anything locally on the machine to make it work, I just want a variable.

Thanks,
Sunil

2 answers



permanent link
Brent Ulbricht (2.5k11) | answered Apr 14 '11, 9:16 p.m.
JAZZ DEVELOPER
I am tryiing to use the following in a step and it gives me cleartool desc error

.bset env "VAR=`perl -e "qx(cleartool desc -fmt %An stream:STREAM@\\pvob"`"

and I get the error cleartool: Error: Object not selected... and it gives me cleartool describe help.

However, if I use lsstream -s instead of desc -fmt.... it seems to work fine.
I am not able to get desc -fmt to work.

Also is there an easy way if I dont' have the adapters to print the existing baseline in the stream in an email.

I don't want to save anything locally on the machine to make it work, I just want a variable.

Thanks,
Sunil


Hi Sunil,

What operating system is your agent running on? Sometimes, things like \\ don't translate well across the different platforms (ex. \\ ending up as \). One thing you might consider is to have a file with the command in your source control system that can be checked out. Then you could use the bset backtick command to just invoke that file.

Brent Ulbricht
Developer/Lead - RTC Build

permanent link
Tim McDaniel (401146) | answered Apr 15 '11, 6:11 a.m.
In article <io6cm0>,
suniljag <sjagarlamudi> wrote:
I am tryiing to use the following in a step and it gives me cleartool
desc error

.bset env "VAR=`perl -e "qx(cleartool desc -fmt %An stream:STREAM@\\pvob"`"

(I read this as a newsgroup. Oddly, something strips leading periods,
perhaps at the newsgroup-forum interface. I restored it.)

It really allows "" within "" like that? I would have expected the
parser for .bset

to get confused and parse it as
.bset env
"VAR=`perl -e "
qx(cleartool desc -fmt %An stream:STREAM@\\pvob
kaboom kaboom KABOOM!: arguments not in double quotes

Are the parsing rules documented?

--
Tim McDaniel, tmcd@panix.com

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.