[cvsnt] Filenames with leading hyphens

Dave Muirhead muirheadd at yahoo.com
Tue Aug 19 01:21:57 BST 2003


Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.


(Using CVSNT via cvs 1.11 client from bash shell
running in cygwin)

Attempting to execute:

 $ cvs commit -213232.xml

results in the error message:

 commit: invalid option -- 2

The leading hyphen in the filename is not surprisingly
being interpreted by cvs as signaling that an argument
to the "commit" command is to follow.

So how does one escape or quote a filename with a
leading hyphen? Or is a leading hyphen in a filename
simply not permitted (nevermind whether its a good
idea or not...)?

I've tried "cvs commit ./-213232.xml" and that doesn't
work. I've tried "cvs commit \-213232.xml" and that
doesn't work.

Thanks in advance.

Dave

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com


More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook