[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#33097: test has filetest -a but man page doesn't list it
From: |
Bernhard Voelker |
Subject: |
bug#33097: test has filetest -a but man page doesn't list it |
Date: |
Mon, 22 Oct 2018 08:15:55 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 |
Hi Assaf,
On 10/20/18 1:09 AM, Assaf Gordon wrote:
> Hi Bernhard,
>
> On 19/10/18 04:56 PM, Bernhard Voelker wrote:
>> On 10/19/18 10:48 PM, Martin Schulte wrote:
>>
>> The '-a FILE' primary is supported since "the beginning", and even the
>> POSIX spec mentions this unlucky thing:
> [...]
>> I don't think we can remove that primary without breaking some scripts,
>> so it's probably best to document it.
>> The attached, proposed patch add documentation both in the man and
>> texinfo format.
>>
>> Comments?
>>
>
> I just noticed this old bug:
> https://bugs.gnu.org/15278
>
> Where Eric notes that coreutils' unary -a is incorrect under some very
> specific circumstances - perhaps it's worth mentioning that as well
> (unless someone wants to fix it, though it's been 5 years...)
thanks for mentioning. Now, this bug would go away with the proposed
patch #1 in [1] to remove the -a unary operator.
FWIW: bash also has a 'test -o SHELLOPT' unary operator to test whether
the given SHELLOPT is enabled in the current shell (see 'set -o SHELLOPT').
GNU test also had this -o unary (until patch #2 in [1]), but this never
worked well because it ran into an error later on because it ran into
thee default case and therefore didn't call 'unary_advance'.
[1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=33097#23
Have a nice day,
Berny
- bug#33097: test has filetest -a but man page doesn't list it, Martin Schulte, 2018/10/19
- bug#33097: test has filetest -a but man page doesn't list it, Bernhard Voelker, 2018/10/19
- bug#33097: test has filetest -a but man page doesn't list it, Assaf Gordon, 2018/10/19
- bug#33097: test has filetest -a but man page doesn't list it,
Bernhard Voelker <=
- bug#33097: test has filetest -a but man page doesn't list it, Paul Eggert, 2018/10/20
- bug#33097: test has filetest -a but man page doesn't list it, Martin Schulte, 2018/10/21
- bug#33097: test has filetest -a but man page doesn't list it, Martin Schulte, 2018/10/21
- bug#33097: test has filetest -a but man page doesn't list it, Bernhard Voelker, 2018/10/21
- bug#33097: test has filetest -a but man page doesn't list it, Pádraig Brady, 2018/10/22
- bug#33097: test has filetest -a but man page doesn't list it, Bernhard Voelker, 2018/10/22
- bug#33097: test has filetest -a but man page doesn't list it, Assaf Gordon, 2018/10/22
- bug#33097: test has filetest -a but man page doesn't list it, Bernhard Voelker, 2018/10/26