Subject: Re: use of [ -e ${file} ]
To: None <>
From: Roland Illig <>
List: tech-pkg
Date: 05/22/2004 16:08:05
Roland Illig wrote:
> Georg Schwarz wrote:
>> pkgsrc/security/openssl uses some expressions like
>> [ -e ${file} ]
>> in ./work/.DEINSTALL and ./work/.INSTALL to figure out whether a
>> partiular file exists or not. (I have no idea where the code for these
>> files comes from, whether it is from pkgsrc or from OpenSSL).
>> Some other scripts with other packages might do the same.
> The autobook states that almost all system know about "test -f $file". 
> Or, alternatively "test -f $file".

The alternative must of course be "test -d $file".