[cvsnt] embedding newlines in the -m option. how?
John Hall
john-news1 at cambridgetechgroup.com
Wed Sep 3 13:59:41 BST 2003
"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