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: Bernhard Voelker <mail <at> bernhard-voelker.de>
To: 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 01:06:49 +0200
[Message part 1 (text/plain, inline)]
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).

Thanks & have a nice day,
Berny

[0001-test-remove-support-for-the-ambigous-a-unary-operato.patch (text/x-patch, attachment)]
[0002-test-simplify-redundant-code.patch (text/x-patch, attachment)]
[0003-test-add-N-unary-operator.patch (text/x-patch, attachment)]

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

Previous Next


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