info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Log messages in several lines


From: Eric Siegerman
Subject: Re: Log messages in several lines
Date: Thu, 6 Jun 2002 13:03:15 -0400
User-agent: Mutt/1.2.5i

Some misconceptions that need to be cleared up here...

On Thu, Jun 06, 2002 at 11:27:20AM +0100, Ripalda-Marin, Miguel-Angel wrote:
> when I checked-in modules from WinCVS to the repository, I was allowed to
> include log messages with several lines... I noticed that it was translated
> to this command:
> cvs commit -m "Line 1\nLine 2\nLine 3"

I'd guess that:
 1. The command was really translated to:
        cvs commit -m "Line 1
        Line 2
        Line 3"

     I.e. *real* linefeed (0x0A) characters, not escape
     sequences, embedded in the command.

 2. When displaying the translated command, WinCVS chose to print
    "\n" escape sequences rather than confusing people with
    multiline commands.

> So, now I work from command-line at a linux terminal, and I try to check-in
> my modules with log messages like that one above...

In a Bournish shell, you can type multiline commands like the one
above.  The key is the unmatched quotes.  The shell will keep
accumulating stuff into that one command -- indeed, into the one
argument -- until it sees another matching quote.

Or use an editor, as you've already discovered.  Usually a lot
easier (though the multiline thing does sometimes have its uses).


On Thu, Jun 06, 2002 at 10:44:04AM +0100, Paul Grenyer's
pointy-haired boss had his email system emit this choice nugget:
> *** Before acting on this e-mail or opening any attachment you are advised to 
> read the disclaimer at the end of this e-mail ***

*sigh*  How long will it be before these outfits start adding
Javascript popup boxes to every message: "Do you accept the terms
of this Email License Agreement?"?


On Thu, Jun 06, 2002 at 10:44:04AM +0100, Paul Grenyer (himself)
wrote:
> Try using '\r\n' instead of '\n' from Linux. :-)

Not likely.

> Please let me know if that fixes the problem

It won't.  Well, maybe you'll convince WinCVS to do something
interesting, but you'll just get twice as many escape sequences
in the log, and no more newlines than before.

--

|  | /\
|-_|/  >   Eric Siegerman, Toronto, Ont.        address@hidden
|  |  /
Anyone who swims with the current will reach the big music steamship;
whoever swims against the current will perhaps reach the source.
        - Paul Schneider-Esleben



reply via email to

[Prev in Thread] Current Thread [Next in Thread]