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

John Hall john-news1 at cambridgetechgroup.com
Wed Sep 3 13:59:41 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.


"Oliver Giesen" <ogware at gmx.net> wrote in message
news:bj4foh$dv0$1 at sisko.local.nodomain.org...

> > 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.

When I've wanted to embed newlines in comments with cvs admin -m, I've
resorted
to using a version of zsh for Windows http://unxutils.sourceforge.net/:

 #cvs admin -m1.4:"This is the first line of a comment.
 dquote> And a second.
 dquote> " file.txt
 RCS file: /cvs/module/file.txt,v
 done

Cheers,
John




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