Subject: use of [ -e ${file} ]
To: None <tech-pkg@netbsd.org>
From: Georg Schwarz <geos@epost.de>
List: tech-pkg
Date: 05/22/2004 03:41:43
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.

My problem is now that IRIX 5.3's test does not support at all a -e
option, thus I get an error message here. I am not sure about other
operating systems. Those which use GNU or BSD code should most likely
not have that problem.

I am looking for suggestions how to solve that problem. For
compatibility reasons one fix would be to use -r instead of -e (assuming
that the file in question should not only exist but it should also have
to be readable).
Any ideas how to deal with that issue?  
   

-- 
Georg Schwarz    http://home.pages.de/~schwarz/
 geos@epost.de     +49 177 8811442