Could you please test whether "chmod u=u $FILE; echo $?" is a good way
to test if a file exists?  A short test on Linux indicated that this
is a no-op for an existing file, and the exit status is zero.  For a
non-existing file, an error message is printed and the exit status is
nonzero.

In particular, it would be nice to know if it works on NetBSD 1.4,
since that's where the "ls -d $FILE; echo $?" method fails.

If "chmod u=u" works everywhere, I don't even need to test which
system I'm on.  This would be cool.

kai
-- 
I like BOTH kinds of music.

Reply via email to