fix recogniation of IN token in for command nested within case command

This commit is contained in:
Chet Ramey
2024-04-15 10:11:38 -04:00
parent 136cdf8108
commit a06616a689
7 changed files with 88 additions and 12 deletions
+2 -2
View File
@@ -1042,12 +1042,12 @@ getconf_all (WORD_LIST *list)
int r;
r = EXECUTION_SUCCESS;
path = list ? list->word->word : 0;
path = list ? list->word->word : "/";
for (c = vars; c->name != NULL; ++c)
{
#if 0
if (c->call == PATHCONF && path == 0)
continue; /* Don't print pathconf vars if no path supplied */
#if 0
if (c->call != PATHCONF && path)
continue; /* Only print pathconf vars if path supplied */
#endif