From 56b28daf4ac6e41a5fe6b960a79233bd9f42fcf1 Mon Sep 17 00:00:00 2001 From: Vadim Zhukov Date: Wed, 11 Jul 2018 11:36:38 +0300 Subject: [PATCH] Missed non-POSIX array expansion. --- share/cht.sh.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/cht.sh.txt b/share/cht.sh.txt index 175dc39..e42d899 100755 --- a/share/cht.sh.txt +++ b/share/cht.sh.txt @@ -246,7 +246,7 @@ EOF if [ "$valid" = no ]; then echo "Invalid section: $new_section" echo "Valid sections:" - echo "${valid_sections[@]}" | xargs printf "%-10s\n" | tr ' ' . | xargs -n 10 | sed 's/\./ /g; s/^/ /' + echo $valid_sections | xargs printf "%-10s\n" | tr ' ' . | xargs -n 10 | sed 's/\./ /g; s/^/ /' continue else section="$new_section"