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
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
This archive was generated by hypermail 2b29 : Sun May 06 2001 - 00:22:41 EDT