extend assoc_expand_once to indexed arrays; rename to array_expand_once, keeping old name as a synonym; udpate shopt documentation

This commit is contained in:
Chet Ramey
2023-06-13 11:44:33 -04:00
parent d44a45afbc
commit 76112093ec
35 changed files with 1389 additions and 1157 deletions
+1 -1
View File
@@ -617,7 +617,7 @@ unary_test (char *op, char *arg, int flags)
case 'v':
#if defined (ARRAY_VARS)
aflags = assoc_expand_once ? AV_NOEXPAND : 0;
aflags = array_expand_once ? AV_NOEXPAND : 0;
if (valid_array_reference (arg, aflags))
{
char *t;