This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Potential 'test' bug


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]