Re: [hackers] [sbase][PATCH] test: add -E

From: Laslo Hunhold <dev_AT_frign.de>
Date: Tue, 27 Dec 2016 11:52:14 +0100

On Mon, 28 Mar 2016 23:50:42 +0200
Mattias Andrée <maandree_AT_kth.se> wrote:

Hey Mattias,

> This is an non-standard extension.
>
> It tests with a file exists, is a directory, and is empty.
> Tests against non-existing files, non-directories and non-empty
> directories causes exit status 1.
>
> It is a sane alternative to writing
>
> test -z "$(ls -A "$1")"

I think as with any discussion about adding nonstandard extensions, the
relevant question is wether this is widely used out there.
Can you give some examples were it is used?

Cheers

Laslo

-- 
Laslo Hunhold <dev_AT_frign.de>
Received on Tue Dec 27 2016 - 11:52:14 CET

This archive was generated by hypermail 2.3.0 : Tue Dec 27 2016 - 15:14:11 CET