[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Should svn:eol-style=native ignore new line characters in quotes

From: Ulrich Eckhardt <eckhardt_at_satorlaser.com>
Date: 2007-11-20 15:37:46 CET

On Tuesday 20 November 2007, James Hartleroad wrote:
> We have the svn:eol-style property set to native for UNIX shell scripts and
> have come across an issue where a '^M' character in a sed statement throws
> a Inconsistent line ending style error.
>
> For example sed 's/^M//g:/\$\$END/d;/^[].....'
>
> Shouldn't the functionally of the svn:eol-style code ignore new line
> characters that are in single or double quotes, since the are not new line
> characters for that file?

I don't think that this text of
mine should be treated as single
line. Don't you think so too? ;)

Seriously: firstly, there is no such thing as a '^M' character, this is just a
shortcut for (I guess) a linebreak and is used by some editors to mark
characters that are not printable, whitespace or control characters. You need
to find out what this actually is, i.e. which byte or byte sequence it
represents.

Anyway, for Subversion it simply is a linebreak and trying to guess from
the surroundings whether you (the user) really meant a linebreak or just
a linebreak-but-not-really is futile.

Just wondering: isn't there a syntax that allows you to specify a newline in
the sed script, e.g. like using '\n' in C, but without a literal newline?

Uli

-- 
ML: http://subversion.tigris.org/mailing-list-guidelines.html
FAQ: http://subversion.tigris.org/faq.html
Docs: http://svnbook.red-bean.com/
Sator Laser GmbH
Geschäftsführer: Michael Wöhrmann, Amtsgericht Hamburg HR B62 932
**************************************************************************************
           Visit our website at <http://www.satorlaser.de/>
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Sator Laser GmbH ist für diese Folgen nicht verantwortlich.
**************************************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Nov 20 15:42:38 2007

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.