[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Ignore boilerplate logo from MSVC on stderr.
From: |
Peter Rosin |
Subject: |
Re: [PATCH] Ignore boilerplate logo from MSVC on stderr. |
Date: |
Wed, 18 Aug 2010 16:12:53 +0200 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 |
Den 2010-08-18 15:53 skrev Peter Rosin:
> Den 2010-08-18 13:35 skrev Paolo Bonzini:
>> On 08/16/2010 08:14 PM, Peter Rosin wrote:
>>> The logo of my version of MSVC is:
>>>
>>> ----8<----
>>> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.762 for
>>> 80x86
>>> Copyright (C) Microsoft Corporation. All rights reserved.
>>>
>>> ----8<----
>>>
>>> Which I match with (in some quasi-regexp notation)
>>>
>>> ----8<----
>>> Microsoft.*Optimizing Compiler.*
>>> Copyright.*Microsoft Corporation.*
>>> .\{0,1\}
>>> ----8<----
>>>
>>> (but only if it matches the first three lines in stderr)
>>>
>>> I don't know why I have to have the ".\{0,1\}" part of the regexp,
>>> but I suspect that it has something to do with newline conversion
>>> in MSYS.
>>
>> Yes, it matches a CR.
>
> Yes. I think it is weird that MSYS does not strip *all* CRs...
>
> ~$ uname -a
> MINGW32_NT-5.1 PEDA-PC 1.0.15(0.47/3/2) 2010-08-010 22:33 i686 Msys
> ~$ sed --version
> GNU sed version 3.02
>
> Copyright (C) 1998 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE,
> to the extent permitted by law.
> ~$ sed -n -e 'l' testfile
> foo$
> bar$
> $
> ~$ od -a testfile
> 0000000 f o o cr nl b a r cr nl cr nl
> 0000014
> ~$ sed -n -e '1N;2N;l' testfile
> foo\nbar\r\n\r$
Updated to a more recent sed on MSYS and that fixed it:
~$ uname -a
MINGW32_NT-5.1 PEDA-PC 1.0.15(0.47/3/2) 2010-08-010 22:33 i686 Msys
~$ sed --version
GNU sed version 4.2.1
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE,
to the extent permitted by law.
GNU sed home page: <http://www.gnu.org/software/sed/>.
General help using GNU software: <http://www.gnu.org/gethelp/>.
E-mail bug reports to: <address@hidden>.
Be sure to include the word ``sed'' somewhere in the ``Subject:'' field.
~$ sed -n -e 'l' testfile
foo$
bar$
$
~$ od -a testfile
0000000 f o o cr nl b a r cr nl cr nl
0000014
~$ sed -n -e '1N;2N;l' testfile
foo\nbar\n$
~$
Sorry for the noise.
Cheers,
Peter
- Re: [PATCH] Ignore boilerplate logo from MSVC on stderr., (continued)
- Re: [PATCH] Ignore boilerplate logo from MSVC on stderr., Peter Rosin, 2010/08/16
- Re: [PATCH] Ignore boilerplate logo from MSVC on stderr., Eric Blake, 2010/08/16
- Re: [PATCH] Ignore boilerplate logo from MSVC on stderr., Peter Rosin, 2010/08/16
- Re: [PATCH] Ignore boilerplate logo from MSVC on stderr., Peter Rosin, 2010/08/17
- Re: [PATCH] Ignore boilerplate logo from MSVC on stderr., Ralf Wildenhues, 2010/08/17
- Re: [PATCH] Ignore boilerplate logo from MSVC on stderr., Peter Rosin, 2010/08/18
- Re: [PATCH] Ignore boilerplate logo from MSVC on stderr., Ralf Wildenhues, 2010/08/16
- Re: [PATCH] Ignore boilerplate logo from MSVC on stderr., Peter Rosin, 2010/08/16
Re: [PATCH] Ignore boilerplate logo from MSVC on stderr., Paolo Bonzini, 2010/08/18