Sleestak has asked for the wisdom of the Perl Monks concerning the following question:
Specifically I would like documentation on how the file test operators work with symbolic links.
$ ln -s my_dir symlink -l "symlink"; # is true -l "symlink/"; # is false
Are the permissions on the symlink ever important? Do the -x/-r/-w test check the link or the thing point to?
I realize that I could try to think of all the combinations and test them but I'm lazy.
Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: File test operators...
by japhy (Canon) on Mar 15, 2001 at 03:26 UTC | |
|
Re: File test operators...
by arturo (Vicar) on Mar 15, 2001 at 03:31 UTC | |
|
Re: File test operators...
by buckaduck (Chaplain) on Mar 15, 2001 at 03:38 UTC |