diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2016-10-11 01:30:00 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2016-10-11 01:30:00 +0300 |
commit | cbbefc3a9727a99f939089abb1e7c7c6a43d262c (patch) | |
tree | ba4566350adeb0c1d20b4b537f2dc9a8564092da /bash.md | |
parent | bash.md: update (diff) | |
download | notes-cbbefc3a9727a99f939089abb1e7c7c6a43d262c.tar.gz notes-cbbefc3a9727a99f939089abb1e7c7c6a43d262c.zip |
bash.md: update
Diffstat (limited to 'bash.md')
-rw-r--r-- | bash.md | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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. |