Re: [PATCH v2 1/2] test: Add unary operator -E: test that a file is an empty directory

2016-04-13 Thread Mattias Andrée
On Wed, 13 Apr 2016 16:16:54 +0100 Stephane Chazelas wrote: > 2016-04-07 10:34:56 +0200, Mattias Andrée: > [] > > + if (!dir) > > +{ > > + error (0, errno, "%s", dirname); > > + test_exit (TEST_FAILURE); > > +} > > Note that it means it makes it the first operator that >

Re: [PATCH v2 1/2] test: Add unary operator -E: test that a file is an empty directory

2016-04-13 Thread Stephane Chazelas
2016-04-07 10:34:56 +0200, Mattias Andrée: [] > + if (!dir) > +{ > + error (0, errno, "%s", dirname); > + test_exit (TEST_FAILURE); > +} Note that it means it makes it the first operator that would actually cause "test" to output something. A test for non-empty without diag

Re: Whats the reason to suppress short unicode characters in printf?

2016-04-13 Thread Stephane Chazelas
2016-04-05 08:02:14 -0600, Eric Blake: [...] > That said, it may be time to consider teaching coreutils to accept ALL > \u escapes, rather than just the ones required by C99, as an > extension for ease of use. [...] Especially considering that the current POSIX draft for sh's $'\u' and $'\