Skip to content

Commit 3580df7

Browse files
committed
l: fix "total" line suppression on FreeBSD
FreeBSD 13 was seen to omit the "total" line when -l was not supplied, so supply that to ensure we get the correct total message to elide.
1 parent 3f8f0fa commit 3580df7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • scripts

scripts/l

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ if [ "$color_when" ]; then
142142
fi
143143
fi
144144
# Get locale total string to match on
145-
total=`$ls -s $color_never / | sed 's/\([^ ]*\).*/\1/;q'`
145+
total=`$ls -sl $color_never / | sed 's/\([^ ]*\).*/\1/;q'`
146146

147147
# Use these options if available
148148
$ls --group-directories-first -d . >/dev/null 2>&1 && gdf=--group-directories

0 commit comments

Comments
 (0)