Dave,
The problem is that the ${CLEARCASE_XPN} gets interpreted by the shell, not
by cleartool.
Try
ct find ${VOB} -branch brtype(${BRANCH_TYPE}) -exec 'echo ${CLEARCASE_XPN}'
(single quotes, which protects the ${...})
-- Darren@Yeats.co.uk +44-7958-679115 Software Configuration Management -- darren.yeats@bosch.com +49-711-81132213 Robert Bosch GmbH> -----Original Message----- > From: David Bainbridge [SMTP:david.bainbridge@uab.ericsson.se > Sent: Monday, January 31, 2000 4:49 PM > To: Bittner, Herbert G > Cc: CCIUG > Subject: Re: [cciug] Scripting problem > > > Thatnks, Herbert, > > Unfortunately that does not solve the problem :-( > > As I said, the echo command is called correctly but the contents of the > CLEARCASE_XPN variable is not passed to the exec command. > > Cheers > > dave > > > "Bittner, Herbert G" wrote: > > > Try putting the -exec command in double quotes, ie: > > > > ct find ${VOB} -branch brtype(${BRANCH_TYPE}) -exec "echo > $CLEARCASE_XPN" > > > > The command line, and script line, should be the same. > > > > HTH... > > > > > -----Original Message----- > > > From: David Bainbridge [SMTP:david.bainbridge@uab.ericsson.se > > > Sent: Monday, January 31, 2000 10:02 AM > > > To: cciug@Rational.Com > > > Subject: [cciug] Scripting problem > > > > > > > > > I am trying to do an exec following a find in a Bourne script (CC > 3.2.1 > > > on Solaris). > > > > > > Example: > > > > > > ct find ${VOB} -branch brtype(${BRANCH_TYPE}) -exec echo > > > ${CLEARCASE_XPN} > > > > > > Both the VOB and branch type are appearing in the command but > > > CLEARCASE_XPN is not, so I get a new line at the echo instead of the > > > extended pathname. (I don't want to use the echo command - I actually > > > need to use rmelem but this is for debug purposes only). > > > > > > Any ideas anyone ...? Again the examples in the manual all relate to > the > > > command line - and that works fine. > > > > > > Dave > > > > > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > > > > > > can also > unsubscribe > > > > > > http://clearcase.rational.com/cciug/mailing_list.html > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > > > > http://clearcase.rational.com/cciug/mailing_list.html - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
This archive was generated by hypermail 2b29 : Sun May 06 2001 - 00:22:42 EDT