1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-05-21 12:01:54 +02:00

unposted: referent of named reference cannot start with digits

This duplicates ksh behavior and doesn't change useful functionality.
This commit is contained in:
Bart Schaefer 2024-02-18 12:19:25 -08:00
parent f1e7481b86
commit 336249e7ea

View file

@ -6348,6 +6348,8 @@ valid_refname(char *val)
{
char *t = itype_end(val, INAMESPC, 0);
if (idigit(*val))
return 0;
if (*t != 0) {
if (*t == '[') {
tokenize(t = dupstring(t+1));