GNU bug report logs - #32308
doc: join: mention whitespace is significant

Previous Next

Package: coreutils;

Reported by: Dima Kogan <dima <at> secretsauce.net>

Date: Mon, 30 Jul 2018 03:12:01 UTC

Severity: wishlist

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Dima Kogan <dima <at> secretsauce.net>
To: bug-coreutils <at> gnu.org
Subject: join doesn't ignore trailing whitespace
Date: Sun, 29 Jul 2018 20:11:04 -0700
[Message part 1 (text/plain, inline)]
Hi. It appears that join doesn't ignore trailing whitespace, resulting
in surprising results. I'm attaching two data files. one is the output
of 'seq 5', and the other is the same thing, but with a trailing space
added to each line. Look:

  dima <at> scrawny:~$ join -j 1 -e - -o auto /tmp/dat.no.trailing.space /tmp/dat.no.trailing.space 
  1
  2
  3
  4
  5

  dima <at> scrawny:~$ join -j 1 -e - -o auto /tmp/dat.trailing.space /tmp/dat.trailing.space   
  1 - -
  2 - -
  3 - -
  4 - -
  5 - -

I guess the manpage isn't explicit about what happens in this case, but
as a user, I find this to be extremely surprising, and this thus feels
like a bug. Thanks.

(I'm not subscribed to the list, so please Cc me in replies)

[dat.no.trailing.space (application/octet-stream, attachment)]
[dat.trailing.space (application/octet-stream, attachment)]

This bug report was last modified 6 years and 234 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.