+ if $first; then
+ first=false
+ else
+ # if we did want the first line, it would need to be stripped of non-printing chars:
+ # line=${line#$'\E[00m'}
+ lines+=("$line")
+ [[ ! ${line:10:1} == " " ]] && aclchar=true
+
+ y="${line:11}"
+ initial_space="${y%%[![:space:]]*}"
+ hardlinks="${y#$initial_space}" # remove any initial spaces
+ hardlinks="${hardlinks%%[[:space:]]*}" # remove everything beyond first word
+ # ignore the hardlinks that files/dirs always have
+ if [[ ${line:0:1} == d ]]; then
+ hardlinks=$(( hardlinks - 2 ))
+ else
+ hardlinks=$(( hardlinks - 1 ))
+ fi
+ [[ $hardlinks == 0 ]] && hardlinks=
+ if (( ${#hardlinks} > max_hl_digits )); then
+ max_hl_digits=${#hardlinks}
+ fi
+
+ hl+=($hardlinks)
+
+ fi