This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ANNOUNCEMENT] Updated [test]: sed-4.4-1


On 2/13/2017 9:14 AM, Nellis, Kenneth (Conduent) wrote:
> From: Steven Penny  
>> Perhaps I am missing something, but cant all that be said about Sed too? I
>> just cant see a situation where we are justified changing one and not the
>> other. They should either both strip carriage returns or neither.
> 
> How about grep?
> 
> $ printf 'hello\r\nworld\r\n' | grep hello | od -An -tcx1
>    h   e   l   l   o  \n
>   68  65  6c  6c  6f  0a
> $
> 
> Are there others?
> 
> (BTW, I support the change.)
> 

All pipe handles should be binary or at least an option to make it that
way.  The file handles should be bound to the mounted mode.

-- 
cyg Simple

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]