fix printf to work in mksh

This commit is contained in:
Thomas Levine 2016-02-08 15:14:22 +00:00
parent 2d4de62729
commit 2ac3a52707
2 changed files with 4 additions and 2 deletions

View File

@ -2,7 +2,7 @@
# Run urchin in a bunch of different shells,
# including a shell that isn't quite POSIX-compatible (zsh)
for shell in dash bash ksh zsh; do
for shell in dash bash mksh ksh zsh; do
if which $shell > /dev/null 2> /dev/null; then
echo
echo Running urchin tests in $shell

4
urchin
View File

@ -16,7 +16,9 @@ fullpath() {
indent() {
level="$1"
printf "%$((2 * ${level}))s"
if test "$level" -gt 0; then
printf "%$((2 * ${level}))s"
fi
}
recurse() {