5 if [ -z "$path" ]; then
10 IFS='/' read -ra components <<< "$path"
14 for component in "${components[@]}"; do
15 [ -z "$component" ] && continue
17 testpath="${testpath}/$component"
19 if [ -h "$testpath" ]; then
20 points_to=$(ls -l $testpath | awk '{print $NF}')
22 echo "$testpath: symbolic link to $(ls -l $testpath | awk '{print $NF}')"
23 testpath=$(readlink -n $testpath)