From 50fb75db3b68ecf99e7e77f8fc57f4b87ff909c2 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 20 Jan 2019 05:31:49 +0200 Subject: [PATCH] docs: update --- README.md | 2 +- manuscript/chapter6.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2ce259a..78846bd 100644 --- a/README.md +++ b/README.md @@ -1051,7 +1051,7 @@ value ```shell $ var="world" -$ declare hello_$var=value +$ declare "hello_$var=value" $ printf '%s\n' "$hello_world" value ``` diff --git a/manuscript/chapter6.txt b/manuscript/chapter6.txt index cd2a01e..88e4b08 100644 --- a/manuscript/chapter6.txt +++ b/manuscript/chapter6.txt @@ -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