Re: Fix race conditions in timeout(1)

2024-03-12 Thread Pádraig Brady
On 11/03/2024 16:22, Pádraig Brady wrote: On 11/03/2024 15:17, Pádraig Brady wrote: There was a narrow race condition reported at: https://github.com/coreutils/coreutils/issues/82 Then I noticed another related race condition in the case of failing fork(). Both should be addressed by the attac

Re: Still a need for [ and pinky info pages?

2024-03-12 Thread Collin Funk
On 2/19/24 6:16 AM, Pádraig Brady wrote: > A basic info page for pinky would be appreciated. I just realized I sent this and then never responded. Sorry about that... I've attached a *very* basic patch adding mostly the same information as the man page. This is my first time really touching Texin

Re: Still a need for [ and pinky info pages?

2024-03-12 Thread Pádraig Brady
On 12/03/2024 13:58, Collin Funk wrote: On 2/19/24 6:16 AM, Pádraig Brady wrote: A basic info page for pinky would be appreciated. I just realized I sent this and then never responded. Sorry about that... I've attached a *very* basic patch adding mostly the same information as the man page. T

Re: stdbuf feature request - line buffering but for null-terminated data

2024-03-12 Thread Kaz Kylheku
On 2024-03-09 08:30, Zachary Santer wrote: > 'stdbuf --output=L' will line-buffer the command's output stream. > Pretty useful, but that's looking for newlines. Filenames should be > passed between utilities in a null-terminated fashion, because the > null byte is the only byte that can't appear wi

[PATCH] maint: prefer minmax.h instead of defining our own

2024-03-12 Thread Collin Funk
I noticed that src/comm.c #define's min. Since system.h includes gnulib's minmax.h we can just remove it and use that. Pretty pointless, but might as well remove the duplication. :) CollinFrom 66af203c4da9834da22787b46be9cc610f7f8b6c Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Tue, 12 Mar 2

Re: stdbuf feature request - line buffering but for null-terminated data

2024-03-12 Thread Kaz Kylheku
On 2024-03-10 01:37, Pádraig Brady wrote: > On 09/03/2024 16:30, Zachary Santer wrote: >> 'stdbuf --output=L' will line-buffer the command's output stream. >> Pretty useful, but that's looking for newlines. Filenames should be >> passed between utilities in a null-terminated fashion, because the >>

Re: stdbuf feature request - line buffering but for null-terminated data

2024-03-12 Thread Zachary Santer
On Tue, Mar 12, 2024 at 2:58 PM Kaz Kylheku wrote: > What if there existed an alternative delimiting mode: a format where > the character strings are delimited by the two byte sequence \0\n. How long did it take for the major command-line utilities to initially implement handling null-terminated

Re: [PATCH] maint: prefer minmax.h instead of defining our own

2024-03-12 Thread Pádraig Brady
On 12/03/2024 17:59, Collin Funk wrote: I noticed that src/comm.c #define's min. Since system.h includes gnulib's minmax.h we can just remove it and use that. Pretty pointless, but might as well remove the duplication. :) Applied. thanks, Pádraig.

Re: stdbuf feature request - line buffering but for null-terminated data

2024-03-12 Thread Zachary Santer
On Tue, Mar 12, 2024 at 12:42 PM Kaz Kylheku wrote: > stdbuf is a hack/workaround for programs that ignore the > issue of buffering. Specifically, programs which send information > to one of the three standard streams, such that the information > is required in a timely way. Those streams become

Re: stdbuf feature request - line buffering but for null-terminated data

2024-03-12 Thread Jeffrey Walton
On Tue, Mar 12, 2024 at 2:59 PM Kaz Kylheku wrote: > > On 2024-03-10 01:37, Pádraig Brady wrote: > > On 09/03/2024 16:30, Zachary Santer wrote: > >> 'stdbuf --output=L' will line-buffer the command's output stream. > >> Pretty useful, but that's looking for newlines. Filenames should be > >> passe