From: Segher B. <se...@ke...> - 2010-12-04 08:33:14
|
> Maybe your 'more' is out of date? It's ancient. It was just an example. You cannot seriously expect the unix world to accept /r/n as a newline everywhere, let alone generate it. >>> grep 'something$' > > You're right. Interesting. Shouldn't be a major obstacle to fixing this, Yes there is. The code already has special magic to guess at CRLF (and a flag to turn it off), but it is only enabled on DOS systems. This is not an accident, it's a conscious decision by the maintainers of grep. Note that you not only need to get grep "fixed", but countless millions of other unix programs. Well, you could get a lot of them in one go by getting a "fix" like this into glibc -- good luck with that! Segher |