GNU bug report logs - #33097
test has filetest -a but man page doesn't list it

Previous Next

Package: coreutils;

Reported by: Martin Schulte <gnu <at> schrader-schulte.de>

Date: Fri, 19 Oct 2018 21:00:02 UTC

Severity: normal

Tags: confirmed, fixed

Merged with 15278

Done: Bernhard Voelker <mail <at> bernhard-voelker.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Pádraig Brady <P <at> draigBrady.com>
To: Bernhard Voelker <mail <at> bernhard-voelker.de>, Paul Eggert <eggert <at> cs.ucla.edu>, Martin Schulte <gnu <at> schrader-schulte.de>, 33097 <at> debbugs.gnu.org
Subject: bug#33097: test has filetest -a but man page doesn't list it
Date: Mon, 22 Oct 2018 05:11:51 -0700
On 21/10/18 16:06, Bernhard Voelker wrote:
> On 10/21/18 2:09 AM, Paul Eggert wrote:
>> I have the opposite impression. Any scripts using this confusing -a operator are 
>> already broken, and we should phase it out. Not that anybody actually *uses* 
>> coreutils "test -a".
> 
> Done with the attached 1st patch.
> 
> The 2nd patch is a cleanup avoiding the redundant checking of unary operators
> in test_unop and unary_operator.
> 
> The 3rd patch adds support for 'test -N FILE' as in bash.
> Please check (on various platforms / file systems if possible).

Very nice.
atime has 24 hour resolution on vfat I think,
though I think your test should handle that.
Also -N should work with common relatime mount option.

thanks!
Pádraig




This bug report was last modified 6 years and 266 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.