Subject: Re: Potential 'test' bug
From: [email-masked] (Matthias Morche)

10 Jul 1998 23:47:39 -0700
Message-ID: <[email-masked]>
References: <[email-masked]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: [email-masked]

[email-masked] wrote:
....
>      Observation of potential 'test' bug:
> 
>         The following fails if more than two files in /temp
>         (or any other directory name ):
> 
>         test -f /temp/*
....
"test -f" allows only one argument. It is meant to test the existence of
exactly one file. "test -f /temp/*" works if temp contains no file since
the replacement for pattern /temp/* is /temp/* and there is no file
named * within directory temp.
-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".