[cvsnt] embedding newlines in the -m option. how?

Oliver Giesen ogware at gmx.net
Wed Sep 3 11:28:36 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.


Lawson.Reed wrote:

> WinCVS does it somehow for "cvs commit -m "foo\n foo"" right?

The problem is that in a console window or batch file the newline
character is treated as a command delimiter. If you use the
CreateProcess API to invoke CVS there is no problem embedding line
feeds (unescaped) in the commandline string and cvs.exe seems to accept
this without problems AFAICT.

I haven't looked at the code yet but I assume WinCvs just displays the
\n for the command dump and really uses CR LF...

That said, I have no idea how to really do it from the commandline or a
batch file and don't know if it is possible at all.

Cheers,

-- 
Oliver
----  ------------------
JID:  ogiesen at jabber.org
ICQ:  18777742     (http://wwp.icq.com/18777742)


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