Article View: comp.bugs.sys5
Article #374Re: Bug in sort(1) when using +m.n -o.p and -tc
From: Doug Gwyn
Date: Fri, 12 Apr 1991 20:42
Date: Fri, 12 Apr 1991 20:42
16 lines
1183 bytes
1183 bytes
In article <1991Apr11.031926.19901@cs.uow.edu.au> david@cs.uow.edu.au (David E A Wilson) writes: >I have run into a bug in the sort(1) command on a Sun4 running SunOS 4.1.1. No, it's just a feature. >/usr/5bin/sort -t: +1.1 -1.2 +1.0 -1.1 <<! That should have been sort -t: +1.1 -1.3 +1.0 -1.2 as documented and shown in an example in the SVR2 manual entry SORT(1). This is admittedly a strange design that is hard to use correctly. My guess is that it may have actually been meant to work differently when it was first implemented, but now that the "sort" utility is in wide use the specifications cannot be changed without breaking many applications.
Technical Details
Message-ID:
<15808@smoke.brl.mil>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!udel!haven!ncifcrf!lhc!adm!smoke!gwynReferences:
<1991Apr11.031926.19901@cs.uow.edu.au>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!udel!haven!ncifcrf!lhc!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.bugs.sys5,comp.bugs.4bsd Subject: Re: Bug in sort(1) when using +m.n -o.p and -tc Keywords: sort bug Message-ID: <15808@smoke.brl.mil> Date: 12 Apr 91 20:42:47 GMT References: <1991Apr11.031926.19901@cs.uow.edu.au> Followup-To: comp.bugs.sys5 Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 16