aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index 60ea6d8..1dd26d3 100644
--- a/README.md
+++ b/README.md
@@ -677,12 +677,12 @@ done
# VARIABLES
-## Name a variable based on another variable
+## Name and access a variable based on another variable
```shell
$ var="world"
-$ export "hello_$var=value"
-$ printf '%s\n' "$hello_world"
+$ eval "hello_$var=value"
+$ eval printf '%s\n' "\$hello_$var"
value
```