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

From: Mattias Andrée <maandree_AT_kth.se>
Date: Tue, 27 Dec 2016 15:30:55 +0100

It is not use elsewhere, and I have learned that shells
implement their own version of if test(1) because they
add flags that can only be implemented inside the shell,
so adding new functionality to test(1) is meaningless
even if the functionality is useful.

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

> 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
>


Received on Tue Dec 27 2016 - 15:30:55 CET

This archive was generated by hypermail 2.3.0 : Tue Dec 27 2016 - 15:36:23 CET