renamed several functions beginning with legal_; changed all callers

This commit is contained in:
Chet Ramey
2023-11-06 09:26:02 -05:00
parent fe24a6a55e
commit b30389070a
57 changed files with 3622 additions and 3516 deletions
+1 -1
View File
@@ -355,7 +355,7 @@ expr_skipsubscript (char *vp, char *cp)
if (array_expand_once & already_expanded)
{
*cp = '\0';
isassoc = legal_identifier (vp) && (entry = find_variable (vp)) && assoc_p (entry);
isassoc = valid_identifier (vp) && (entry = find_variable (vp)) && assoc_p (entry);
*cp = '['; /* ] */
}
flags = (isassoc && array_expand_once && already_expanded) ? VA_NOEXPAND : 0;