I need to test whether
is a symbolic link to
I need to comply with the POSIX standard.
(In general should run on RHEL 5 to RHEL 7.)
This is what I have so far:
#!/bin/bash if [ $(readlink -f /etc/mtab | grep '\/proc\/') ]; then echo do something related to proc else echo do something other than proc fi
Am I missing some edge cases?