redo/sh.do: include the 'lksh' variant of mksh.

This one attempts to be a much closer match to POSIX, and seems to
succeed, giving only warning W118.
This commit is contained in:
Avery Pennarun 2018-12-17 13:21:42 +00:00
commit 761b77333e

View file

@ -11,7 +11,8 @@ WARN=
# powerful ones. We want weaker shells to take precedence, as long as they # powerful ones. We want weaker shells to take precedence, as long as they
# pass the tests, because weaker shells are more likely to point out when you # pass the tests, because weaker shells are more likely to point out when you
# use some non-portable feature. # use some non-portable feature.
for sh in dash /usr/xpg4/bin/sh ash posh mksh ksh ksh88 ksh93 pdksh \ for sh in dash /usr/xpg4/bin/sh ash posh \
lksh mksh ksh ksh88 ksh93 pdksh \
zsh bash busybox /bin/sh; do zsh bash busybox /bin/sh; do
printf " %-22s" "$sh..." printf " %-22s" "$sh..."
FOUND=`which $sh 2>/dev/null` || { echo "missing"; continue; } FOUND=`which $sh 2>/dev/null` || { echo "missing"; continue; }