summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--bash.md9
1 files changed, 4 insertions, 5 deletions
diff --git a/bash.md b/bash.md
index 1ca3d13..e1bd377 100644
--- a/bash.md
+++ b/bash.md
@@ -19,14 +19,13 @@ GNU `bash`
#### Do
+ unset -v 'arr[x]'
unset -v 'arr[$i]'
#### Don't
unset -v arr[x] # May break due to globbing.
- unset -v arr[$i] # The same as above + possibly a pair of quotes is
- # missing.
+ unset -v arr[$i] # The same as above + possibly a pair of quotes is missing.
unset -v 'arr["x"]' # Doesn't work for some reason.
- unset -v 'arr["]"]' # The same as above; just highlighting the problem
- # with funny characters in array indices.
- # An insightful discussion: https://lists.gnu.org/archive/html/help-bash/2016-09/msg00020.html.
+ unset -v 'arr["]"]' # The same as above; just highlighting the problem with funny characters in array indices.
+ # An insightful discussion: https://lists.gnu.org/archive/html/help-bash/2016-09/msg00020.html.