Re: Work around BSD `join` bug

2024-01-11 Thread Bruno Haible
Paul Eggert wrote: > >- POSIX violation or not? Is it valid to pass lines with missing fields > > to 'join', according to POSIX [1]? > > It should be valid, yes. POSIX 'join' defers to POSIX 'sort' for the > definition of fields, and POSIX 'sort' says missing fields should be > treated

Re: Work around BSD `join` bug

2024-01-10 Thread Paul Eggert
On 1/10/24 13:58, Bruno Haible wrote: - POSIX violation or not? Is it valid to pass lines with missing fields to 'join', according to POSIX [1]? It should be valid, yes. POSIX 'join' defers to POSIX 'sort' for the definition of fields, and POSIX 'sort' says missing fields should be t

Re: Work around BSD `join` bug

2024-01-10 Thread Bruno Haible
Hello Avinash, > BSD `join` has a bug where if one of the input file contains blank > lines then `join` fails.[0] Confirmed on FreeBSD and NetBSD. [0] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232405 Before applying the patch, it would be useful to understand its scope and the kind of bu

Work around BSD `join` bug

2024-01-10 Thread Avinash Sonawane
: Wed, 10 Jan 2024 21:40:30 +0530 Subject: [PATCH] Work around BSD `join` bug. * gnulib-tool (func_update_ignorelist): Remove blank lines as BSD `join` fails if one of the file contains empty lines. Copyright-paperwork-exempt: Yes --- ChangeLog | 5 + gnulib-tool | 2 +- 2 files changed, 6