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

Oliver Giesen ogware at gmx.net
Wed Sep 3 11:28:36 BST 2003


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