In Linux one can use the command
diff to check for differences of files. I use it to check for differences across two modules, both copied to
However, both modules have symlinks, which might not be pointing to the correct file, as the modules have been copied to the
/tmp directory. But this does not matter. What I want to check is if the symlinks are the same.
For example, in one module the symlink reads
and in the other the symlink reads:
diff now throws an error because - in general - it cannot find the file. But I want to let
diff say: "Hey, those symlinks are not the same" regardless if the links point to valid files or not.
Question: How is it possible for
diff to do that, i.e. not trying to follow links, but to diff the links itself?