Potential 'test' bug

Matthias Morche Matthias.Morche@sat1.de
Fri Jul 10 12:03:00 GMT 1998


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



More information about the Cygwin mailing list