info-cvs
[Top][All Lists]
Advanced

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

RE: commit -m "Line One\rLineTwo"


From: Andy Baker
Subject: RE: commit -m "Line One\rLineTwo"
Date: Thu, 19 Apr 2001 18:31:08 +0100

Or ksh...

        $ cvs commit -m"$(echo "Line One\nLineTwo")" file

Andy

-----Original Message-----
From: Gianni Mariani [mailto:address@hidden
Sent: 13 April 2001 15:26
To: James A. N. Stauffer; CVS
Subject: RE: commit -m "Line One\rLineTwo"



It seems this depends more on your shell than it does cvs.

Using tcsh you need to do so:

        cvs commit -m "foo\
        bar"

                tcsh requires an escape ('\') for each newline 
                withing a quote.

On bash you do:

        cvs commit -m "foo
        bar"

                bash (GNU bash, version 2.04.11(1)-release) keeps 
                on reading input until it's matching end '"'
G

-----Original Message-----
From: address@hidden [mailto:address@hidden Behalf Of
James A. N. Stauffer
Sent: Friday, April 13, 2001 7:00 AM
To: CVS
Subject: commit -m "Line One\rLineTwo"


How do I run commit and give a two line message?


_______________________________________________
Info-cvs mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/info-cvs



NOTICE AND DISCLAIMER:
This email (including attachments) is confidential.  If you have received
this email in error please notify the sender immediately and delete this
email from your system without copying or disseminating it or placing any
reliance upon its contents.  We cannot accept liability for any breaches of
confidence arising through use of email.  Any opinions expressed in this
email (including attachments) are those of the author and do not necessarily
reflect our opinions.  We will not accept responsibility for any commitments
made by our employees outside the scope of our business.  We do not warrant
the accuracy or completeness of such information.





reply via email to

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