mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-07 18:52:35 +02:00
commit bash-20161230 snapshot
This commit is contained in:
+16
-8
@@ -306,30 +306,38 @@ declare -a b=([0]="0")
|
||||
./nameref15.sub: line 19: warning: ref: circular name reference
|
||||
./nameref15.sub: line 20: warning: ref: circular name reference
|
||||
./nameref15.sub: line 21: warning: ref: circular name reference
|
||||
inside
|
||||
inside X
|
||||
outside X
|
||||
./nameref15.sub: line 29: typeset: ref: nameref variable self references not allowed
|
||||
./nameref15.sub: line 31: ref: nameref variable self references not allowed
|
||||
before: 7
|
||||
./nameref15.sub: line 32: typeset: warning: xxx: circular name reference
|
||||
./nameref15.sub: line 32: warning: xxx: circular name reference
|
||||
./nameref15.sub: line 33: warning: xxx: circular name reference
|
||||
declare -n xxx="xxx"
|
||||
./nameref15.sub: line 35: warning: xxx: circular name reference
|
||||
xxx_func: inside: xxx = foo
|
||||
after: foo
|
||||
./nameref15.sub: line 46: typeset: ref: nameref variable self references not allowed
|
||||
./nameref15.sub: line 48: ref: nameref variable self references not allowed
|
||||
declare -n ref="re"
|
||||
declare -n ref="re"
|
||||
declare -- re="4"
|
||||
4
|
||||
declare -n foo="var[@]"
|
||||
declare -n ref="var[@]"
|
||||
./nameref15.sub: line 48: var[@]: bad array subscript
|
||||
./nameref15.sub: line 65: var[@]: bad array subscript
|
||||
declare -n bar="var[@]"
|
||||
./nameref15.sub: line 53: var[@]: bad array subscript
|
||||
./nameref15.sub: line 70: var[@]: bad array subscript
|
||||
declare -n a="b"
|
||||
declare -n b="a[1]"
|
||||
./nameref15.sub: line 61: warning: a: removing nameref attribute
|
||||
./nameref15.sub: line 78: warning: a: removing nameref attribute
|
||||
declare -a a=([1]="foo")
|
||||
declare -n b="a[1]"
|
||||
./nameref15.sub: line 66: warning: a: removing nameref attribute
|
||||
./nameref15.sub: line 83: warning: a: removing nameref attribute
|
||||
declare -a a=([1]="foo")
|
||||
declare -n b="a[1]"
|
||||
declare -n n="v"
|
||||
declare -a v=([1]="1")
|
||||
./nameref15.sub: line 82: typeset: n: not found
|
||||
./nameref15.sub: line 99: typeset: n: not found
|
||||
declare -a v=([0]="0" [1]="1")
|
||||
declare -n n="v[1]"
|
||||
declare -a v=([0]="0")
|
||||
|
||||
Reference in New Issue
Block a user