mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-11-24 00:58:05 +01:00
commit bash-20160520 snapshot
This commit is contained in:
1 parent
0fcb334438
commit
bddda3d2e1
32 files changed
+625
-113
No files matched your search
@@ -238,16 +238,16 @@ valid_nameref_value (name, for_assignment)
|
||||
{
|
||||
intmax_t r;
|
||||
|
||||
if (name == 0 || *name == 0)
|
||||
return 0;
|
||||
|
||||
#if defined (ARRAY_VARS)
|
||||
if (legal_identifier (name) || valid_array_reference (name, 0))
|
||||
#else
|
||||
if (legal_identifier (name))
|
||||
#endif
|
||||
return 1;
|
||||
#if 0
|
||||
if (for_assignment == 0 && legal_number (name, &r))
|
||||
return 1;
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user