I have some software that, among other things, needs to:
- Assess a file's rwxrwxrwx permissions;
- Work under every possible flavor of Unix and Linux you can find in the wild.
Currently, it does that running the ls -l command. If the file is a symlink, I have to get the permissions of the target file. The -L switch works nicely for that.
The question: Are there flavors of Unix in which I run the risk of that switch not being available? If so, which ones? (If they're rare enough and old enough, I might just be able to ignore the problem.)