diff options
author | Dominik Ritter <dritter03@googlemail.com> | 2016-01-22 21:11:33 +0300 |
---|---|---|
committer | Dominik Ritter <dritter03@googlemail.com> | 2016-01-23 03:45:39 +0300 |
commit | ed28b8d26fa543218656e2165e4c8b26f898f21a (patch) | |
tree | 87e600cb1ae4e72190ab48d6b87660f717a4fade | |
parent | cd78c66997c786dad0fe02b3df69f247d4293063 (diff) |
Use explicit word splitting. No need to set SH_WORD_SPLIT
-rw-r--r-- | functions/utilities.zsh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/functions/utilities.zsh b/functions/utilities.zsh index f855caf5..df022f2c 100644 --- a/functions/utilities.zsh +++ b/functions/utilities.zsh @@ -60,10 +60,10 @@ printSizeHumanReadable() { # worthy. The callback function has access to # the inner variable $item. function getRelevantItem() { - setopt shwordsplit # We need to split the words in $interfaces - - local list callback - list=$1 + local -a list + local callback + # Explicitly split the elements by whitespace. + list=${=1} callback=$2 for item in $list; do |