diff -ur dash-0.5.9.1.orig/src/mystring.c dash-0.5.9.1/src/mystring.c --- dash-0.5.9.1.orig/src/mystring.c 2017-03-18 05:23:28.000000000 +0100 +++ dash-0.5.9.1/src/mystring.c 2017-03-18 05:20:51.000000000 +0100 @@ -182,22 +182,6 @@ return 1; } -/* - * Check if a string is identical to a shell keyword (reserved word). - */ - -int -is_kwd(const char *s) -{ - int i = 0; - - do { - if (strcmp(s, parsekwd[i++]) == 0) - return 1; - } while (*parsekwd[i-1] != '}'); /* assuming that "}" is last entry */ - - return 0; -} /* @@ -213,7 +197,7 @@ single_quote(const char *s, int conditional) { char *p; - if (conditional && *s != '\0' && s[strspn(s, SHELLSAFECHARS)] == '\0' && ! is_kwd(s)) + if (conditional && *s != '\0' && s[strspn(s, SHELLSAFECHARS)] == '\0' && ! findkwd(s)) return (char *)s; STARTSTACKSTR(p);