Subject: Re: use of [ -e ${file} ]
To: Roland Illig <>
From: Georg Schwarz <>
List: tech-pkg
Date: 05/22/2004 15:48:11
> 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".

Does anyone know where exactly the ./work/.INSTALL and ./work/.DEINSTALL
scripts come from for openssl, i.e. where this would have to be changed?

-f has the disadvantage, IMO, that it does not match for symlinks.

Georg Schwarz     +49 177 8811442