Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Trying to use .bset env "VAR...

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

0 votes



2 answers

Permanent link
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

0 votes


Permanent link
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

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Apr 14 '11, 4:52 a.m.

Question was seen: 4,318 times

Last updated: Apr 14 '11, 4:52 a.m.

Confirmation Cancel Confirm