Hi
I've been trying to find if a file exists
to know if Netscape is running.
When Netscape starts, it creates a file
that is a symbolic link, so I tried to
find it with:
test -e /home/emf/.netscape/lock
but this didn't work.
So I tried:
test -L /home/emf/.netscape/lock
and this worked.
Now here goes the "bug report"
"man test" says:
[...]
-e FILE
FILE exists
[...]
-L FILE
FILE exists and is a symbolic link
[...]
-x FILE
FILE exists and is executable
So if I do:
test -x ~/executable_file
test -e ~/executable_file
both return true: Ok
Now:
test -L symbolic_link
returns true. This means that
the file exists AND is a symbolic link
But
test -e symbolic_link
returns false (file doesn't exists)
Who is wrong?
Man page, command or I?
Thank for your time
P.S. Excuse my bad english, but I'm sapnish.
--
Eduardo Mu�oz
~/.signature: No such file or directory