mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-06-11 19:18:01 +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:
parent
f1e7481b86
commit
336249e7ea
1 changed files with 2 additions and 0 deletions
|
@ -6348,6 +6348,8 @@ valid_refname(char *val)
|
||||||
{
|
{
|
||||||
char *t = itype_end(val, INAMESPC, 0);
|
char *t = itype_end(val, INAMESPC, 0);
|
||||||
|
|
||||||
|
if (idigit(*val))
|
||||||
|
return 0;
|
||||||
if (*t != 0) {
|
if (*t != 0) {
|
||||||
if (*t == '[') {
|
if (*t == '[') {
|
||||||
tokenize(t = dupstring(t+1));
|
tokenize(t = dupstring(t+1));
|
||||||
|
|
Loading…
Reference in a new issue