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.
In reply to File test operators... by Sleestak
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |