This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Potential 'test' bug
- To: gnu-win32 at cygnus dot com
- Subject: Re: Potential 'test' bug
- From: Matthias Morche <Matthias dot Morche at sat1 dot de>
- Date: Fri, 10 Jul 1998 20:20:42 +0200
- Organization: (privat)
- References: <9807099000.AA900011345@ftdetrck-ccmail.army.mil>
john_baker@ftdetrck-ccmail.army.mil 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
"gnu-win32-request@cygnus.com" with one line of text: "help".