bug-gnu-utils
[Top][All Lists]
Advanced

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

sed: dot does not match newline in multi-line mode (the M modifier) - bu


From: Dmitry Bolshakov
Subject: sed: dot does not match newline in multi-line mode (the M modifier) - bug or feature?
Date: Wed, 23 Nov 2011 14:15:22 +0400
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20111105 Thunderbird/8.0

Hi

$ sed --version | head -n1
GNU sed version 4.2.1

test command:

$ echo $'line1\nline2\nline3' | sed -n '1h;1!H;$bend;b; :end g;s/.*/dot matches 
newline/;p; g;s/.*/dot does not match newline/M;p'
dot matches newline
dot does not match newline
line2
line3

I could not find anything about such behaviour in manual
is this bug or feature?

--
With best regards
Dmitry Bolshakov



reply via email to

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