PREV INDEX NEXT

Author: Stan Eisenstat
Subject: Re: [Cs223] None
Date: Thursday, 02 Apr 2020, 08:20:40


    > Message Posted By: Unknown
    >
    > What does "./Qsort /c/cs223/Hwk4/Tests/f007 | sort -c" do?

This command verifies that the output from Qsort is in
sorted order.
=====

    > I get "sort: -:2: disorder: I can reach the key; and if it makes me grow
    > smaller, I can creep" as the output.
    >
    > However, my code when running "./Qsort /c/cs223/Hwk4/Tests/f007" gives the
    > same output as the staff solution.

As I posted yesterday,

  Date: 01 Apr 2020 18:20:12 -0400 (Wed)
  Subject: sort -c
   
  If you are getting errors from
   
    % ./Qsort FILE | sort -c
   
  a possible cause is not having the environment variable
  LC_ALL set to C.  Running it as
   
    % Qsort T/f007 | LC_ALL=C sort -c
   
  or executing the command
   
    % export LC_ALL=C
   
  first corrects this problem (the latter until you log
  out).

The test scripts all set LC_ALL to C to avoid this issue.

--Stan-
PREV INDEX NEXT