Skip to content

Commit 76202ee

Browse files
committed
l: better detect ls on Solaris 11
Solaris 11 ls was seen to support the --color option, so use --version to determine if GNU or not.
1 parent b91bdf3 commit 76202ee

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
@@ -61,7 +61,7 @@ else
6161
fi
6262

6363
ls=ls #default to standard name
64-
{ ls --color -d . >/dev/null 2>&1; } ||
64+
{ ls --version >/dev/null 2>&1; } ||
6565
{ gls --color -d . >/dev/null 2>&1 && ls=gls; } || NONGNU=1
6666

6767
if [ "$color_when" ]; then

0 commit comments

Comments
 (0)