Sort "in"compatibilities with xpg4...
Hendrik Visage <[email protected]> Fri, 21 Mar 2003 14:24:49 +0200
| Newsgroups | gmane.comp.gnu.textutils.bugs |
|---|---|
| Message-ID | <[email protected]> |
Hi there, below is a "issue" I would believe that sort should handle "correctly" as per the xpg4 versions, not the SVR4 version of sort (Or is that POSIX correct") to take -k 1,1 as the whole line. Is there a way to force sort to handle -k 1,1 the same way as -k 2,2?? Below hermwas is a Solaris 2.6 machine, while meklon is a Linux machine with Textutils 2.1. Greetz Hendrik hermwas% /usr/xpg4/bin/sort -k 1,1 -c test hermwas% /usr/bin/sort -k 1,1 -c test sort: disorder: robert anderson hermwas% /usr/xpg4/bin/sort -k 1,1 -c test hermwas% /usr/xpg4/bin/sort -k 2,2 -c test1 hermwas% cat test robert upton robert anderson robert botha hermwas% cat test1 1 robert upton 2 robert anderson 3 robert botha meklon% sort -k 1,1 -c test sort: test:2: disorder: robert anderson meklon% sort -k 2,2 -c test1 meklon% cat test robert upton robert anderson robert botha meklon% cat test1 1 robert upton 2 robert anderson 3 robert botha