bug#41657: md5sum: odd escaping for input filename \

2020-06-01 Thread Bob Proulx
Hello Michael, Michael Coleman wrote: > $ true > \\ > $ md5sum \\ > \d41d8cd98f00b204e9800998ecf8427e \\ > $ md5sum < \\ > d41d8cd98f00b204e9800998ecf8427e - Thank you for the extremely good example! It's excellent. > The checksum is not what I would expect, due to the leading > backslash.

bug#37702: Suggestion for 'df' utility

2020-06-01 Thread Bob Proulx
Paul Eggert wrote: > So I'd prefer having 'df' just do the "right" thing by default, and > to have an option to override that. The "right" thing should be to > ignore all these pseudofilesystems that hardly anybody cares about. +1! Which I thought I would say because often I am a status quo type

bug#41657: md5sum: odd escaping for input filename \

2020-06-01 Thread Michael Coleman
Apologies if this has already been fixed, but glancing at the source, probably not. For version 8.22: $ true > \\ $ md5sum \\ \d41d8cd98f00b204e9800998ecf8427e \\ $ md5sum < \\ d41d8cd98f00b204e9800998ecf8427e - The checksum is not what I would expect, due to the leading backslash. And in

Re: [PATCH 1/2] echo: pacify Oracle Studio 12.6

2020-06-01 Thread Bob Proulx
Paul Eggert wrote: > * src/echo.c (main): Don’t assign pointer to bool. > This is well-defined in C99, but is arguably bad style > and Oracle Studio 12.6 complains. ... > + bool posixly_correct = !!getenv ("POSIXLY_CORRECT"); Of course this is fine. But because char *getenv() returns a pointer

Re: Extend uniq to support unsorted list based on hashtable

2020-06-01 Thread Bob Proulx
Yair Lenga wrote: > For the first point, I would note that most coreutils goes well beyond > POSIX. Consider "cp", which has many useful additions beyond the POSIX > features. Most of those additions were due to file systems with new features and therefore cp needed to be able to deal with those

[PATCH] maint: use getrandom, not getentropy

2020-06-01 Thread Paul Eggert
This makes for one Gnulib module less, and at runtime there’s typically just one getrandom syscall instead of several for large nonces. * gl/lib/randread.c: Include sys/random.h instead of sys/time.h and unistd.h. (get_nonce): Use getrandom, not getentropy. * gl/modules/randread (Depends-on):

bug#37702: Suggestion for 'df' utility

2020-06-01 Thread Bryce Harrington
On Mon, Jun 01, 2020 at 09:04:26AM -0700, Bryce Harrington wrote: > On Sun, May 31, 2020 at 01:49:24PM +0100, Pádraig Brady wrote: > > On 31/05/2020 10:36, Bernhard Voelker wrote: > > > What about to start with this? > > > > > >$ GIT_PAGER= git -C gnulib diff > > >diff --git

bug#37702: Suggestion for 'df' utility

2020-06-01 Thread Bryce Harrington
On Sun, May 31, 2020 at 01:49:24PM +0100, Pádraig Brady wrote: > On 31/05/2020 10:36, Bernhard Voelker wrote: > > On 2020-05-31 01:07, Paul Eggert wrote: > > > On 5/30/20 4:49 AM, Erik Auerswald wrote: > > > > I concur that a command line option to override config file (or env var) > > > >

bug#41634: 'timeout' returning 124 and 133

2020-06-01 Thread Jonny Grant
On 01/06/2020 07:53, Andreas Schwab wrote: On Mai 31 2020, Jonny Grant wrote: Could the 124 and 137 be documented on the man page? What's wrong with the last paragraph in the DESCRIPTION section? Andreas. My mistake missing that. But could the 137 be listed explicitly? ie. "It may be

bug#41634: 'timeout' returning 124 and 133

2020-06-01 Thread Andreas Schwab
On Mai 31 2020, Jonny Grant wrote: > Could the 124 and 137 be documented on the man page? What's wrong with the last paragraph in the DESCRIPTION section? Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for

bug#41622: [PATCH] tests: Change gnulib commit to compile make check

2020-06-01 Thread Paul Eggert
On 5/30/20 4:17 PM, Colton Lewis wrote: > When I ran make check after building the master branch commit > aefd434e, I got a compilation error. Thanks for reporting the problem. I updated the Gnulib version while fixing some other stuff, and am closing the bug report.

[PATCH 2/2] maint: use getentropy and new tempname modules

2020-06-01 Thread Paul Eggert
Update gnulib submodule to latest and use its new features. Gnulib’s new getentropy module means coreutils can now assume getentropy instead of approximating it, badly in some cases. Gnulib’s improvements to the tempname module mean coreutils no longer needs to maintain private patches. *

[PATCH 1/2] echo: pacify Oracle Studio 12.6

2020-06-01 Thread Paul Eggert
* src/echo.c (main): Don’t assign pointer to bool. This is well-defined in C99, but is arguably bad style and Oracle Studio 12.6 complains. --- src/echo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/echo.c b/src/echo.c index b5a6e966c..e7f3447ee 100644 --- a/src/echo.c