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

  • SEARCH
  • Home
  • 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 6916341
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:35:24+00:00 2026-05-27T09:35:24+00:00

On creating some directories in ClearCase, I ‘forgot’ that the argument order was significant.

  • 0

On creating some directories in ClearCase, I ‘forgot’ that the argument order was significant. I Added some directories like this:

cleartool mkdir a b -c "Some comment"

On being asked for a comment for the directories, I realised the ‘-c’ arguemnt was in the wrong place, but assumed all would be OK, so entered Some comment twice more (for a, and b seperately). I was then asked for a comment for element ‘-c’, and Ctrl-C’ed the command.

However, now cleartool ls shows elements a, b, and ‘-c’.

I cannot remove the ‘-c’ element. I’ve tried the following:

cleartool rmelem "-c"   #fails, assumes the -c is the comment argument
cleartool rmelem -c "comment" -c
cleartool rmelem -c "comment" "-c"
cleartool rmelem -c "comment" ^-c    #Running on Windows, so tried Windows escape
cleartool rmelem -c "comment" \-c    #CC mimics UNIX, so tried UNIX escape
cleartool rmelem -c "comment" ^\-c   #CC mimics UNIX, but running thru Windows, so tried escaping the UNIX escape.

All fail, saying either Illegal duplicate use of flag "-c[omment]" (when not escaped), or Unable to access ... (when escaped).

One other strange thing. If I tried single quotes, ct assumed the ‘ was part of the element name:

> cleartool rmelem -c "Removing element '-c'" '-c'
cleartool: Error: Pathname not found: "'-c'".
  • 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-05-27T09:35:25+00:00Added an answer on May 27, 2026 at 9:35 am

    Use a — a separator between options and arguments.

    See Removing ClearCase objects whose name begins with a hyphen

    To remove a ClearCase object (view, VOB, element or other ClearCase objects) with a preceding hyphen (-) character, execute the cleartool command with a double-hyphen argument to prevent cleartool from interpreting the name as an option.

    cleartool rmelem -- -t1.txt
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating some application that plays sounds like piano, drums etc. I have a
I am creating an application which produces some files/directories in my WebContent folder and
I like creating named branches in Mercurial to deal with features that might take
I'm creating directories using myFileObject.mkdirs() . In Windows, every directory that gets created is
I am creating a quick backup script that will dump some databases into a
I am having some serious pathing issues with a website that I am creating.
I found some code on here for creating temporary directories in Java. public static
Creating some simple html pages specific for the iphone, and would like to use
I'm creating some scripts to streamline application installations and I need to append to
I'm creating some entities (class) for my project and I want to set a

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.