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

This commit is contained in:
Chet Ramey committed 2024-04-15 10:11:38 -04:00
1 parent 136cdf8108
commit a06616a689
7 files changed
+88 -12

No files matched your search

+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