What are the best programming tools / techniques for performing complex nesting of symbolic links and complete capture and reporting of each symbolic link along the path, including in the middle of the path (see below for more information) .
Here is a concrete example. Consider the following shell command output
ls -l /Library/Java/Home
lrwxr-xr-x 1 root admin 48 Feb 24 12:58 /Library/Java/Home -> /System/Library/Frameworks/JavaVM.framework/Home
The ls command lets you know that the / library / file of the Java / Home file is a symbolic link to another location. However, this does not let you know that the item it points to is also a symbolic link.
ls -l /System/Library/Frameworks/JavaVM.framework/Home
lrwxr-xr-x 1 root wheel 24 Feb 24 12:58 /System/Library/Frameworks/JavaVM.framework/Home -> Versions/CurrentJDK/Home
This, in turn, does not let you know that part of the path of the specified file is a symbolic link.
ls -l /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK
lrwxr-xr-x 1 root wheel 3 Feb 24 12:58 /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK -> 1.5
, ,
ls -l /System/Library/Frameworks/JavaVM.framework/Versions/1.5
lrwxr-xr-x 1 root wheel 5 Feb 24 12:58 /System/Library/Frameworks/JavaVM.framework/Versions/1.5 -> 1.5.0
, "" .
- , - ( , )? , script ( , , !), , ", , ., ". , - .
/, , PHP- -. , , () , , /ββ.