www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/07/10/23:47:39

From: Matthias DOT Morche AT sat1 DOT de (Matthias Morche)
Subject: Re: Potential 'test' bug
10 Jul 1998 23:47:39 -0700 :
Message-ID: <35A65B7A.EC65A12C.cygnus.gnu-win32@sat1.de>
References: <9807099000 DOT AA900011345 AT ftdetrck-ccmail DOT army DOT mil>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

john_baker AT ftdetrck-ccmail DOT army DOT 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 AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019