[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#24894: coreutils 8.4 : `test -s` without argument does not return an
From: |
Pádraig Brady |
Subject: |
bug#24894: coreutils 8.4 : `test -s` without argument does not return an error |
Date: |
Mon, 7 Nov 2016 16:51:33 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
On 07/11/16 12:58, BAECKEROOT Alain wrote:
> Dear gnu-coreutils team
>
> We had a funny problem caused by `test` which does return "0" when an option
> is given without any EXPRESSION
>
> The man page says (near line 15 or so) :
> An omitted EXPRESSION defaults to false.
It's a bit of a gotcha, but not a bug. I updated:
http://www.pixelbeat.org/docs/coreutils-gotchas.html#test
thanks,
Pádraig