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

The "test -f foo" on Debian GNU/Linux calls stat, not lstat, so there's
no problem here. What's on other systems?

So 'test -f "$file" -o -d "$file"' should in most cases be as good as
'test -e "$file"'.