docs: update
This commit is contained in:
parent
7621e969df
commit
50fb75db3b
|
@ -1051,7 +1051,7 @@ value
|
|||
|
||||
```shell
|
||||
$ var="world"
|
||||
$ declare hello_$var=value
|
||||
$ declare "hello_$var=value"
|
||||
$ printf '%s\n' "$hello_world"
|
||||
value
|
||||
```
|
||||
|
|
|
@ -21,7 +21,7 @@ $ hello_world="value"
|
|||
$ var="world"
|
||||
|
||||
# Declare a nameref.
|
||||
$ declare -n ref=hello_$var
|
||||
$ declare -n "ref=hello_$var"
|
||||
|
||||
$ printf '%s\n' "$ref"
|
||||
value
|
||||
|
|
Loading…
Reference in New Issue