<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: sort on HPUX and LINUX differs in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sort-on-hpux-and-linux-differs/m-p/2427486#M767588</link>
    <description>I keyed in your original example of a two line file and allowed for the leading space. With both 10.20 and 11.00 I cannot reproduce the erroneous output that you show.  Instead I get same output you show from Linux.&lt;BR /&gt;&lt;BR /&gt;Make sure you are using /usr/bin/sort.  Also make sure there are no hidden characters in your input file.  When I do "what /usr/bin/sort" on 10.20, I get:&lt;BR /&gt;$Revision: 78.5&lt;BR /&gt;&lt;BR /&gt;Do you have a different version?</description>
    <pubDate>Wed, 28 Jun 2000 14:16:40 GMT</pubDate>
    <dc:creator>Paul Hite</dc:creator>
    <dc:date>2000-06-28T14:16:40Z</dc:date>
    <item>
      <title>sort on HPUX and LINUX differs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sort-on-hpux-and-linux-differs/m-p/2427479#M767581</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have the following file and want to sort him by the first 4 bytes numerically:&lt;BR /&gt;&lt;BR /&gt;$cat file&lt;BR /&gt; 200abc&lt;BR /&gt; 1004711&lt;BR /&gt;&lt;BR /&gt;HPUX 10.20:  sort -k1.1n,1.4 file&lt;BR /&gt;&lt;BR /&gt; 200abc&lt;BR /&gt; 1004711&lt;BR /&gt;&lt;BR /&gt;LINUX:  sort -k1.1n,1.4 file&lt;BR /&gt;&lt;BR /&gt; 1004711&lt;BR /&gt; 200abc&lt;BR /&gt;&lt;BR /&gt;Which machine gives wrong result?&lt;BR /&gt;&lt;BR /&gt;Greetings&lt;BR /&gt;&lt;BR /&gt;Bernd Rieke</description>
      <pubDate>Sun, 25 Jun 2000 12:14:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sort-on-hpux-and-linux-differs/m-p/2427479#M767581</guid>
      <dc:creator>Bernd Rieke</dc:creator>
      <dc:date>2000-06-25T12:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: sort on HPUX and LINUX differs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sort-on-hpux-and-linux-differs/m-p/2427480#M767582</link>
      <description>LINUX machine gave the wrong sort order, since you are sorting using the 1st field as the sort key from the file.&lt;BR /&gt;The -k option is intended to replace the obsolete [+pos1 [+pos2]] notation, using field_start and field_end respectively.</description>
      <pubDate>Sun, 25 Jun 2000 13:08:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sort-on-hpux-and-linux-differs/m-p/2427480#M767582</guid>
      <dc:creator>CHRIS_ANORUO</dc:creator>
      <dc:date>2000-06-25T13:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: sort on HPUX and LINUX differs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sort-on-hpux-and-linux-differs/m-p/2427481#M767583</link>
      <description>Stop, there is an error in displaying&lt;BR /&gt;the contents of file! Each line&lt;BR /&gt;starts with a blank. This was&lt;BR /&gt;lost when I copied with cut and paste.&lt;BR /&gt;So the contents of the file is&lt;BR /&gt;&lt;BR /&gt; 200abcd&lt;BR /&gt; 1004711&lt;BR /&gt;^&lt;BR /&gt;+--- here is the blank&lt;BR /&gt;&lt;BR /&gt;Sorry</description>
      <pubDate>Sun, 25 Jun 2000 15:17:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sort-on-hpux-and-linux-differs/m-p/2427481#M767583</guid>
      <dc:creator>Bernd Rieke</dc:creator>
      <dc:date>2000-06-25T15:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: sort on HPUX and LINUX differs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sort-on-hpux-and-linux-differs/m-p/2427482#M767584</link>
      <description>No the blank was lost because all&lt;BR /&gt;lines are shiftet to the left in this&lt;BR /&gt;forum. For test I'll try a little&lt;BR /&gt;program:&lt;BR /&gt;&lt;BR /&gt;    if(i == 1) {&lt;BR /&gt;        x=9&lt;BR /&gt;    }</description>
      <pubDate>Sun, 25 Jun 2000 15:30:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sort-on-hpux-and-linux-differs/m-p/2427482#M767584</guid>
      <dc:creator>Bernd Rieke</dc:creator>
      <dc:date>2000-06-25T15:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: sort on HPUX and LINUX differs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sort-on-hpux-and-linux-differs/m-p/2427483#M767585</link>
      <description>Yes, looks strange the program. Nothing&lt;BR /&gt;is indented. HP you can't do it. Please display anything as it is typed!</description>
      <pubDate>Sun, 25 Jun 2000 15:32:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sort-on-hpux-and-linux-differs/m-p/2427483#M767585</guid>
      <dc:creator>Bernd Rieke</dc:creator>
      <dc:date>2000-06-25T15:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: sort on HPUX and LINUX differs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sort-on-hpux-and-linux-differs/m-p/2427484#M767586</link>
      <description>To amplify slightly on Chris answer:&lt;BR /&gt;&lt;BR /&gt;The difference in sort result you see is the result of the shorter length of the " 200a..." line.  HPs sort command truncates the "a..." as a non-numeric (when you have used the -n flag).  LINUX is failing to do this.  You can see the difference quite clearly with something like:&lt;BR /&gt;# sort file&lt;BR /&gt;1000&lt;BR /&gt;2000&lt;BR /&gt;300a&lt;BR /&gt;4000&lt;BR /&gt;5000&lt;BR /&gt;&lt;BR /&gt;# sort -n file&lt;BR /&gt;300a&lt;BR /&gt;1000&lt;BR /&gt;2000&lt;BR /&gt;4000&lt;BR /&gt;5000</description>
      <pubDate>Mon, 26 Jun 2000 13:09:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sort-on-hpux-and-linux-differs/m-p/2427484#M767586</guid>
      <dc:creator>Alan Riggs</dc:creator>
      <dc:date>2000-06-26T13:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: sort on HPUX and LINUX differs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sort-on-hpux-and-linux-differs/m-p/2427485#M767587</link>
      <description>But why is sort looking at the "a"?&lt;BR /&gt;I restrict the sort key to column 1 to 4&lt;BR /&gt;(remember the leading blank on each line)&lt;BR /&gt;And within the bytes 1 to 4 there is no&lt;BR /&gt;"a". Only the numbers 100 and 200....</description>
      <pubDate>Wed, 28 Jun 2000 09:18:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sort-on-hpux-and-linux-differs/m-p/2427485#M767587</guid>
      <dc:creator>Bernd Rieke</dc:creator>
      <dc:date>2000-06-28T09:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: sort on HPUX and LINUX differs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sort-on-hpux-and-linux-differs/m-p/2427486#M767588</link>
      <description>I keyed in your original example of a two line file and allowed for the leading space. With both 10.20 and 11.00 I cannot reproduce the erroneous output that you show.  Instead I get same output you show from Linux.&lt;BR /&gt;&lt;BR /&gt;Make sure you are using /usr/bin/sort.  Also make sure there are no hidden characters in your input file.  When I do "what /usr/bin/sort" on 10.20, I get:&lt;BR /&gt;$Revision: 78.5&lt;BR /&gt;&lt;BR /&gt;Do you have a different version?</description>
      <pubDate>Wed, 28 Jun 2000 14:16:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sort-on-hpux-and-linux-differs/m-p/2427486#M767588</guid>
      <dc:creator>Paul Hite</dc:creator>
      <dc:date>2000-06-28T14:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: sort on HPUX and LINUX differs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sort-on-hpux-and-linux-differs/m-p/2427487#M767589</link>
      <description>You specified the -n flag.  A numeric sort be design strips off leading blanks.  Paul, I can only assume that you ran your test without specifying a numeric sort.</description>
      <pubDate>Wed, 28 Jun 2000 15:19:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sort-on-hpux-and-linux-differs/m-p/2427487#M767589</guid>
      <dc:creator>Alan Riggs</dc:creator>
      <dc:date>2000-06-28T15:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: sort on HPUX and LINUX differs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sort-on-hpux-and-linux-differs/m-p/2427488#M767590</link>
      <description>Using a capital B to represent blanks, my input file is:&lt;BR /&gt;B200abc&lt;BR /&gt;B1004711&lt;BR /&gt;When I run the command: sort -k1.1n,1.4 file&lt;BR /&gt;I get the following output:&lt;BR /&gt;B1004711&lt;BR /&gt;B200abc&lt;BR /&gt;&lt;BR /&gt;Again those B's are really blanks, I am compensating for the software on this site.&lt;BR /&gt;&lt;BR /&gt;The output I am getting is exactly what I would expect and I get the same output on 10.20 and 11.00.  Alan, what result do get?   What output would you expect?</description>
      <pubDate>Wed, 28 Jun 2000 15:52:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sort-on-hpux-and-linux-differs/m-p/2427488#M767590</guid>
      <dc:creator>Paul Hite</dc:creator>
      <dc:date>2000-06-28T15:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: sort on HPUX and LINUX differs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sort-on-hpux-and-linux-differs/m-p/2427489#M767591</link>
      <description>Thanks for all of you who replied.&lt;BR /&gt;Because some of you stated that sort&lt;BR /&gt;on their HP 10.20 gives other results&lt;BR /&gt;then the one I get I compared different versions of sort introduced with the&lt;BR /&gt;patches. And I found the answer:&lt;BR /&gt;the wrong result was introduced with&lt;BR /&gt;patch PHCO_16303. So everybody who is&lt;BR /&gt;patching behind this patchlevel may&lt;BR /&gt;get wrong results on numeric sorts or&lt;BR /&gt;at least a different one then before&lt;BR /&gt;this patchlevel.&lt;BR /&gt;&lt;BR /&gt;HP what are you saying???? &lt;BR /&gt;&lt;BR /&gt;(Remeber that B stands for a Blank)&lt;BR /&gt;&lt;BR /&gt;bernd/107$ what /tmp/sort&lt;BR /&gt;/tmp/sort:&lt;BR /&gt;         $Revision: 78.5.1.5 $&lt;BR /&gt;         PATCH_10_20: sort.o hpux_rel.o 97/12/10&lt;BR /&gt;         PATCH-10.20:PHCO_13399,10.30:PHCO_13400,11.00:PHCO_13401 libc.a_ID@@/main/r10dav/libc_dav/libc_dav_cpe/7&lt;BR /&gt;         /ux/core/libs/libc/archive_pa1/libc.a_ID&lt;BR /&gt;         Dec  2 1997 11:22:33&lt;BR /&gt;bernd/107$ /tmp/sort -k1.1n,1.4 file&lt;BR /&gt;B1004771&lt;BR /&gt;B200a   &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; it's ok&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;bernd/107$ what /var/tmp/sort&lt;BR /&gt;/var/tmp/sort:&lt;BR /&gt;         $Revision: 78.5.1.8 $&lt;BR /&gt;         PATCH_10_20: sort.o hpux_rel.o 99/02/26&lt;BR /&gt;         PATCH-PHCO_16303 for 10.20; for 10.30, 11.x compatibility libc.a_ID@@/main/r10dav/libc_dav/libc_dav_cpe/8&lt;BR /&gt;         /ux/core/libs/libc/archive_pa1/libc.a_ID&lt;BR /&gt;         Sep 11 1998 16:54:45&lt;BR /&gt;bernd/107$ /var/tmp/sort -k1.1n,1.4 file&lt;BR /&gt;B200a&lt;BR /&gt;B1004771  &amp;lt;&amp;lt;&amp;lt;&amp;lt; it's wrong&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;bernd/107$ what /usr/bin/sort&lt;BR /&gt;/usr/bin/sort:&lt;BR /&gt;         $Revision: 78.5.1.11 $&lt;BR /&gt;         PATCH_10_20: sort.o hpux_rel.o 99/08/30&lt;BR /&gt;         PATCH-PHCO_18644 for 10.20; for 10.30, 11.x compatibility libc.a_ID@@/main/r10dav/libc_dav/libc_dav_cpe/9&lt;BR /&gt;         /ux/core/libs/libc/archive_pa1/libc.a_ID&lt;BR /&gt;         Jul  8 1999 15:44:31&lt;BR /&gt;bernd/107$ /usr/bin/sort -k1.1n,1.4 file&lt;BR /&gt;B200a&lt;BR /&gt;B1004771     &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; it's wrong, too&lt;BR /&gt;bernd/107$&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Jun 2000 16:55:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sort-on-hpux-and-linux-differs/m-p/2427489#M767591</guid>
      <dc:creator>Bernd Rieke</dc:creator>
      <dc:date>2000-06-28T16:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: sort on HPUX and LINUX differs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sort-on-hpux-and-linux-differs/m-p/2427490#M767592</link>
      <description>Paul, I get the result I posted earlier.  I viewed this as a result of HP-UX truncating non-numeric information from the field for a numeric sort.  With that understanding, it is the expected result.  If you assume that HP-UX will attempt to interpret "a" as a decimal number, then I would expect your result.  Personally, I would prefer bad input be thrown out, but the moral here seems to be "always test with boundary conditions".  Good advice for any command/data set.</description>
      <pubDate>Wed, 28 Jun 2000 19:58:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sort-on-hpux-and-linux-differs/m-p/2427490#M767592</guid>
      <dc:creator>Alan Riggs</dc:creator>
      <dc:date>2000-06-28T19:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: sort on HPUX and LINUX differs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sort-on-hpux-and-linux-differs/m-p/2427491#M767593</link>
      <description>Alan the "a" should be ignored because it is not part of the sort key.  One key is " 100" and the second key is " 200".  In both cases we have a 4 character sort key.  The other characters should be ignored because they are just data that is going along for the ride.   If there was -b arg in effect, then I could see the "a" becoming relevant.</description>
      <pubDate>Wed, 28 Jun 2000 20:21:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sort-on-hpux-and-linux-differs/m-p/2427491#M767593</guid>
      <dc:creator>Paul Hite</dc:creator>
      <dc:date>2000-06-28T20:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: sort on HPUX and LINUX differs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sort-on-hpux-and-linux-differs/m-p/2427492#M767594</link>
      <description>Paul -- except that a numeric sort quite explicitely is designed to ignore leading blanks.  So the two keys, if we throw out the "a", are 200 and 1000.</description>
      <pubDate>Wed, 28 Jun 2000 20:45:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sort-on-hpux-and-linux-differs/m-p/2427492#M767594</guid>
      <dc:creator>Alan Riggs</dc:creator>
      <dc:date>2000-06-28T20:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: sort on HPUX and LINUX differs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sort-on-hpux-and-linux-differs/m-p/2427493#M767595</link>
      <description>But I'm giving a clear order to sort(1):&lt;BR /&gt;Extract the bytes 1 to 4 (included) as&lt;BR /&gt;the sortkey. Any other byte of the line&lt;BR /&gt;is in no way of interest building the &lt;BR /&gt;sortkey! So the sort key is B100 and B200,&lt;BR /&gt;nothing else! Tell me any reason why sort&lt;BR /&gt;should look at other bytes, in this case &lt;BR /&gt;byte 5 of the line. After having extracted&lt;BR /&gt;the sortkey the discussion about 'kill'&lt;BR /&gt;leading blank or not is not important&lt;BR /&gt;because B100 is the same as 100B, seen&lt;BR /&gt;numerically (remember the B stands for&lt;BR /&gt;a blank in the file).&lt;BR /&gt;&lt;BR /&gt;And another question: we are using HPUX&lt;BR /&gt;till 15 years and sort was working like&lt;BR /&gt;it does before patch PHCO_16303 all the&lt;BR /&gt;time (and like LINUX and SOLARIS are).&lt;BR /&gt;Why can HP change the behavior of sort&lt;BR /&gt;without any announcement? Sort is an &lt;BR /&gt;important program and many many outputs&lt;BR /&gt;rely on it!</description>
      <pubDate>Wed, 28 Jun 2000 21:27:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sort-on-hpux-and-linux-differs/m-p/2427493#M767595</guid>
      <dc:creator>Bernd Rieke</dc:creator>
      <dc:date>2000-06-28T21:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: sort on HPUX and LINUX differs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sort-on-hpux-and-linux-differs/m-p/2427494#M767596</link>
      <description>From man sort:&lt;BR /&gt;&lt;BR /&gt;The -n option implies the -b option (see below).&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;-b          Ignore leading blanks when determining the starting and ending positions of a restricted sort key.  If the -b option is specified before the first -k option (+pos1 argument), it is applied to all -k options&lt;BR /&gt;&lt;BR /&gt;We can argue about whether this is how it SHOULD be, but it clearly indicates that you have specified your keys to be 1000 and 200a.</description>
      <pubDate>Wed, 28 Jun 2000 21:59:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sort-on-hpux-and-linux-differs/m-p/2427494#M767596</guid>
      <dc:creator>Alan Riggs</dc:creator>
      <dc:date>2000-06-28T21:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: sort on HPUX and LINUX differs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sort-on-hpux-and-linux-differs/m-p/2427495#M767597</link>
      <description>Sorry, Alan, you're right.  I had missed the "-n implies -b" on HP's man page.&lt;BR /&gt;&lt;BR /&gt;Bernd, the phrase Alan mentions does appear on HP's manpage although it is absent on the sort manpage of Solaris.  I don't have access to a Linux, but I'll bet that the phrase is absent there as well.&lt;BR /&gt;&lt;BR /&gt;So after the patch to HP-UX, all unix versions are operating according to their manpages.  And this is just another command that's a little different on HP-UX verses other versions of unix.&lt;BR /&gt;&lt;BR /&gt;Again, I'm sorry to have contributed to the confusion, and thanks to Alan for clearing up the confusion.</description>
      <pubDate>Thu, 29 Jun 2000 12:35:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sort-on-hpux-and-linux-differs/m-p/2427495#M767597</guid>
      <dc:creator>Paul Hite</dc:creator>
      <dc:date>2000-06-29T12:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: sort on HPUX and LINUX differs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sort-on-hpux-and-linux-differs/m-p/2427496#M767598</link>
      <description>Paul, Alan thanks for the discussion up to&lt;BR /&gt;this point. We are ending up with the result&lt;BR /&gt;that sort satisfies the manpage. But in real &lt;BR /&gt;life programs should satisfy our needs. This&lt;BR /&gt;then ends in a manpage which discribes the&lt;BR /&gt;behavior of the program and not the other way&lt;BR /&gt;round.&lt;BR /&gt;&lt;BR /&gt;I asked around but nobody could tell me an&lt;BR /&gt;example where the '-n implies -b option'&lt;BR /&gt;makes sense. Can one of you? Normaly the -k&lt;BR /&gt;option is used to sort files without delimiters between the sortkeys. How is it&lt;BR /&gt;possible to sort such a file containing &lt;BR /&gt;numeric columns? For example (I had it yesterday in a similar way) sort the following file in the order 3. column, then&lt;BR /&gt;1. and the 2. (3. ends on byte 16):&lt;BR /&gt;               &lt;BR /&gt;BB10bernd  12334abc3242235&lt;BR /&gt;B100alan  123523123123KLLL&lt;BR /&gt;BBB1paul     2234$1433333&lt;BR /&gt;&lt;BR /&gt;sort -k1.10n,1.16 -k1.1n,1.4 -k1.5n,1.9 doesn't work. No way to do it with the HPUX sort!!!&lt;BR /&gt;&lt;BR /&gt;Another fact as we are speaking about formal&lt;BR /&gt;things: the webpage &lt;A href="http://www.unixsolutions.hp.com/products/hpux/hpux11_futures.html" target="_blank"&gt;www.unixsolutions.hp.com/products/hpux/hpux11_futures.html&lt;/A&gt; says that HPUX complies with the Open Group "Single UNIX Specification" (SUS I will use for short). &lt;BR /&gt;&lt;BR /&gt;I looked at the manpage for sort within the&lt;BR /&gt;"SUS". In contrary to the HP manpage the&lt;BR /&gt;'-n implies -b' is missing! The HP manpage&lt;BR /&gt;doesn't comply with the standard and therefore sort isn't it, too. And thats the mess. Don't mix up options. If somebody&lt;BR /&gt;wants -b then he should specify -b&lt;BR /&gt;&lt;BR /&gt;Thanks again to you.&lt;BR /&gt;Bernd</description>
      <pubDate>Thu, 29 Jun 2000 22:00:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sort-on-hpux-and-linux-differs/m-p/2427496#M767598</guid>
      <dc:creator>Bernd Rieke</dc:creator>
      <dc:date>2000-06-29T22:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: sort on HPUX and LINUX differs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sort-on-hpux-and-linux-differs/m-p/2427497#M767599</link>
      <description>I do not work for HP, so I will not attempt to explain WHY the sort command uses that particular logic.  If looking for examples in which it makes sense, I naturally think or right justified solumnar output, the kind you would find in accounts ledgers or the in teh output stram of many Unix commands.&lt;BR /&gt;&lt;BR /&gt;In principal, however, I agree with you on this point: there should always be a means for the user to override default options.  I do not mind "-n implies -b".  But I do feel there should be a means of overiding this default.  To steal a signof I ran across the other day:&lt;BR /&gt;&lt;BR /&gt;0 1 -- my two bits</description>
      <pubDate>Fri, 30 Jun 2000 13:59:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sort-on-hpux-and-linux-differs/m-p/2427497#M767599</guid>
      <dc:creator>Alan Riggs</dc:creator>
      <dc:date>2000-06-30T13:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: sort on HPUX and LINUX differs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sort-on-hpux-and-linux-differs/m-p/2427498#M767600</link>
      <description>Personally, I feel that the "-n implies -b" was a very poor decision.  And an option to undo this default would be better than nothing, but still is not a good idea.  I would rather see HP conform to the standards.  Ideally, it should be possible to write scripts that work on any version of unix.&lt;BR /&gt;&lt;BR /&gt;But things are the way they are.  HP always seems to march to its own beat.  This isn't the first time I have been burned HP's strange twist to a standard unix command.  Nor will it be the last.&lt;BR /&gt;&lt;BR /&gt;The moral is to read HP's man pages carefully no matter how familiar you are with the command on other versions of unix.</description>
      <pubDate>Fri, 30 Jun 2000 14:50:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sort-on-hpux-and-linux-differs/m-p/2427498#M767600</guid>
      <dc:creator>Paul Hite</dc:creator>
      <dc:date>2000-06-30T14:50:48Z</dc:date>
    </item>
  </channel>
</rss>

