Is Symbolic Link In Path (GPL)
IsSymbolicLinkInPath.bash is a Bourne-again shell script that accepts path on its command-line argument and tells you whether there is a symbolic link anywhere in the path. This script returns the value '1' when it finds one or more links in the path. It returns the value '0' when no links are found.
Normally, the shell's "test -L" is sufficient for detecting symbolic link. However, the "test -L" only works on symbolic files. If the path is a directory or a real file that contains the symbolic link in its path, then "test -L" will fail to make that detection. This IsSymbolicLinkInPath.bash script is a gap-filler for this deficiency.
IsSymbolicLinkInPath.bash is distributed as executable source code under the GNU General Public License. Please see the license agreement elsewhere on this site.
Did your message disappear? Read the Forums FAQ.
Title: DereferenceSymbolicLink.sh (GPL)
Spam Control | * indicates required field
Messages, files, and images copyright by respective owners.
13 Users Online
Copyright © 1996 - 2017. All Rights Reserved.