From: Michael P. <mic...@gm...> - 2010-12-04 05:12:01
|
Segher Boessenkool wrote: >> Your "more" is just a symlink to "less". "Real" more will show a ^M. $ ls -l /bin/more -rwxr-xr-x 1 root root 30244 Jul 30 07:29 /bin/more $ ls -l /usr/bin/less -rwxr-xr-x 1 root root 124708 Jul 30 06:41 /usr/bin/less $ tar tjf /usr/portage/distfiles/util-linux-ng-2.17.2.tar.bz2 |grep more util-linux-ng-2.17.2/text-utils/more.1 util-linux-ng-2.17.2/text-utils/more.c $ tar tzf /usr/portage/distfiles/less-436.tar.gz |grep \.c$ less-436/brac.c less-436/ch.c less-436/charset.c less-436/cmdbuf.c less-436/command.c [...] less-436/tags.c less-436/ttyin.c less-436/version.c Maybe your 'more' is out of date? >> grep 'something$' You're right. Interesting. Shouldn't be a major obstacle to fixing this, given that the alternative with non-text (non-LF,non-CRLF) is to say "Binary file XYZ matches". I.e., there shouldn't be a problem treating CR as the end of the line, right? But I haven't looked at the source, so maybe it would be difficult... Thanks, Michael |