Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8219033
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T13:00:52+00:00 2026-06-07T13:00:52+00:00

I meet a problem that when I run clearcase command: ct find . -branch

  • 0

I meet a problem that when I run clearcase command:

ct find . -branch 'brtype(my_branch)' -exec "echo %CLEARCASE_XPN%"`

%CLEARCASE_XPN% not parsed as a variable and the output is:

%CLEARCASE_XPN%
%CLEARCASE_XPN%
%CLEARCASE_XPN%
...

But I’m sure CLEARCASE_XPN is the variable denotes the whole path of the found file.
Can anybody help? OS is linux, shell is tcsh, thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T13:00:53+00:00Added an answer on June 7, 2026 at 1:00 pm

    Use:

    ct find . -branch 'brtype(my_branch)' -exec 'echo $CLEARCASE_XPN'
    

    %CLEARCASE_XPN% is a windows syntax.

    $CLEARCASE_XPN is the unix syntax, that you can use in your Linux tcsh session.

    See “cleartool find” and “Additional examples of the cleartool find command” for many examples using the unix syntax.


    Note also the use of simple quotes around the exec directive: -exec 'echo $CLEARCASE_XPN'.
    That will prevent the shell itself to interpret immediately the $CLEARCASE_XPN variable (which is unknow for the tcsh session) and will allow the cleartool find to pass the right value to the exec directive, replacing $CLEARCASE_XPN with the extended pathname.

    See “String quoting (single quote) vs. Weak Quoting (double quote)“:

    • Strong quoting prevents characters from having special meanings, so if you put a character inside single quotes, what you see is what you get.
      Therefore, if you are not sure if a character is a special character or not, use strong quotation marks.

    • Weak quotation marks treat most characters as plain characters, but allow certain characters (or rather meta-characters) to have a special meaning. As the earlier example illustrates, the backslash within double quotation marks is a special meta-character.
      It indicates the next character is not, so it can be used before a backslash and before a double quotation mark, escaping the special meaning.
      There are two other meta-characters that are allowed inside double quotation marks: the dollar sign, and the back quote.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I meet a relayout problem that is in my swing application I add four
I meet a problem that my page works well in firefox and chrome(almost the
Here is a hum-dinger of a problem that I have not found an answer
I have issue that is reproduced on g++. VC++ doesn't meet any problems. So
I use :match to highlight problems with my code that don't meet style guidelines.
I meet a problem yesterday. Maybe it's because it is April 1st... but it
I recently meet a problem when copying dynamically allocated data in device to host
I meet some scala code with ? but do not know what it mean
I need to find all CIDs (Contracts) meet the following conditions They are active
I am using gmock in my project and I meet a problem to set

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.