From 2d17be11eddff71ccbeb37d53c8b6c4ee68ab96d Mon Sep 17 00:00:00 2001 From: Avery Pennarun Date: Tue, 4 Dec 2018 02:31:41 -0500 Subject: [PATCH] sh.do: explicitly check /bin/sh instead of sh. Because our experiment involves creating a file called redo/sh, and the redo directory (or some other version of redo's dirctory) might be on the path, just testing 'sh' is actually wrong: we might end up with some earlier version of redo-sh. Instead, specifically for sh, always demand that we test /bin/sh. --- redo-sh.do | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redo-sh.do b/redo-sh.do index 468ddde..52f0120 100644 --- a/redo-sh.do +++ b/redo-sh.do @@ -12,7 +12,7 @@ WARN= # pass the tests, because weaker shells are more likely to point out when you # use some non-portable feature. for sh in dash /usr/xpg4/bin/sh ash posh mksh ksh ksh88 ksh93 pdksh \ - zsh bash busybox sh; do + zsh bash busybox /bin/sh; do printf "%-30s" "Testing $sh..." FOUND=`which $sh 2>/dev/null` || { echo "missing"; continue; }