bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#32308: join doesn't ignore trailing whitespace


From: Dima Kogan
Subject: bug#32308: join doesn't ignore trailing whitespace
Date: Sun, 29 Jul 2018 20:11:04 -0700
User-agent: mu4e 0.9.19; emacs 27.0.50

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:

  address@hidden:~$ join -j 1 -e - -o auto /tmp/dat.no.trailing.space 
/tmp/dat.no.trailing.space 
  1
  2
  3
  4
  5

  address@hidden:~$ 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)

Attachment: dat.no.trailing.space
Description: Binary data

Attachment: dat.trailing.space
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]