[Bug 217711] join(1) tool fails to properly arrange default field order

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Mar 11 23:41:40 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217711

            Bug ID: 217711
           Summary: join(1) tool fails to properly arrange default field
                    order
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: alt.j2-4o4s2yon at yopmail.com

found using the GNU coreutils testsuite.

# For -v2, print the match field correctly with the default output format,
# when that match field is different between file 1 and file 2.  Fixed in 8.10
['v2-order', '-v2 -2 2', ["", "2 1\n"], "1 2\n", 0],
expected output for join v2 -2 2 is "1 2"
with the 2 files, one being an empty file, the other containing only "2 1" and
a newline character.

here's instructions how to use the gnu coreutils testsuite:

    in order to use the testsuite, one needs 3 files from coreutils:
    tests/misc/join.pl, the actual test;
    tests/Coreutils.pm, some library functions; and
    src/getlimits
    the latter you can compile in the coreutils tree via: make src/getlimits
    then you need to patch Coreutils.pm to run getlimits from whereever you
    have it, or add it to PATH. after that modify join.pl to start the join
    implementation to test. run it with: perl -I. -MCoreutils join.pl

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list