How do I obtain a description of all encountered symlinks for the given path?Expecting output like this:$ linksinfo ~/.nix-profile/lib/libQt5OpenGL.so/home is a directory/home/nix is a directory/home/nix/.nix-profile -> /home/nix/.nix-profile -> /nix/var/nix/profiles/default/nix/var/nix/profiles/default/lib is a directory/nix/var/nix/profiles/default/lib/libQt5OpenGL.so -> /nix/store/33xkmx1f1040s5nb15x7hx2cqmyw1jyi-qt-5.3.1/lib/libQt5OpenGL.so/nix/store/33xkmx1f1040s5nb15x7hx2cqmyw1jyi-qt-5.3.1/lib/libQt5OpenGL.so -> libQt5OpenGL.so.5.3.1/nix/store/33xkmx1f1040s5nb15x7hx2cqmyw1jyi-qt-5.3.1/lib/libQt5OpenGL.so.5.3.1 is a file
How do I display information about all encountered symlinks in a given path?
symlink