URL:
  <http://savannah.gnu.org/bugs/?21163>

                 Summary: join stops on numeric field if last number before
double-digit is missing
                 Project: GNU Core Utilities
            Submitted by: None
            Submitted on: Wednesday 09/26/2007 at 18:52 UTC
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

tested with coreutils-5.2.1-31.4 on RHEL4, coreutils-5.97-12.1.el5 on RHEL5

Looks likes join terminates when joining on a numeric field if the last
n-digit number before the n+1-digit number is missing, e.g. I have 2 sorted
files with numbers 1-2000 (and then some data in other fiels). If in one file
the line with "999 some data" is missing, the join output will stop at the
line before. If instead  the "998 some other data" line is missing, join's
output continues as expected. 

# cat a       (sequence)
7
8
9
10
11
12
# cat b       (sequence with 9 missing)
7
8
10
11
12
# cat c       (sequence with 8 missing)
7
9
10
11
12


# join a b
7
8
<--- where's the rest?
# join a c
7
9
10
11
12





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?21163>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to