hush: fix incorrect processing of echo "'$var'".
[oweals/busybox.git] / scripts / checkhelp.awk
index 608a46e5807923bd662c25154385be7d259df5fb..4bb4996dc599195b256ee8be6777423752a2109d 100755 (executable)
                help[pos] = 0;
        }
 }
-/^[[:space:]]*help[[:space:]]*$/ {
+/^[ \t]*help[ \t]*$/ {
        help[pos] = 1;
 }
-/^[[:space:]]*bool[[:space:]]*$/ {
+/^[ \t]*bool[ \t]*$/ {
        help[pos] = 1; # ignore options which are not selectable
 }
 BEGIN {
@@ -31,8 +31,8 @@ BEGIN {
        is_choice = 0;
 }
 END {
-       for (i = 0; i < pos; i++) {
-#      printf("%s: help for #%i '%s' == %i\n", file[i], i, conf[i], help[i]);
+       for (i = 0; i <= pos; i++) {
+#      printf("%s: help for #%i '%s' == %i\n", file[i], i, conf[i], help[i]);
                if (help[i] == 0) {
                        printf("%s: No helptext for '%s'\n", file[i], conf[i]);
                }