docs: update

This commit is contained in:
Dylan Araps
2019-01-20 05:31:49 +02:00
parent 7621e969df
commit 50fb75db3b
2 changed files with 2 additions and 2 deletions

View File

@@ -1051,7 +1051,7 @@ value
```shell ```shell
$ var="world" $ var="world"
$ declare hello_$var=value $ declare "hello_$var=value"
$ printf '%s\n' "$hello_world" $ printf '%s\n' "$hello_world"
value value
``` ```

View File

@@ -21,7 +21,7 @@ $ hello_world="value"
$ var="world" $ var="world"
# Declare a nameref. # Declare a nameref.
$ declare -n ref=hello_$var $ declare -n "ref=hello_$var"
$ printf '%s\n' "$ref" $ printf '%s\n' "$ref"
value value