;;
esac
local x y perm line binls sizePadding middle tail size \
- max_hl_digits hardlinks initial_space hardlink_spacing
+ max_hl_digits hardlinks initial_space hardlink_spacing out
local max_hl_digits=0
local -a lines hl
binls=$(type -P ls)
$binls -lA "$@"
return
fi
+ out=$("$binls" -lAh --color=always "--time-style=+%m-%d %Y
+%m-%d %I:%M %P" "$@")
local aclchar=false
# there's no way to tell if ls uses the acl specifier unless we loop over the data twice
# the 11th char is either
fi
hl+=("$hardlinks")
fi
- done< <( "$binls" -lAh --color=always "--time-style=+%m-%d %Y
-%m-%d %I:%M %P" "$@" )
+ done<<<"$out"
hardlink_spacing=$((max_hl_digits + 1))