mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-17 02:00:07 +00:00
Use explicit word splitting. No need to set SH_WORD_SPLIT
This commit is contained in:
parent
cd78c66997
commit
ed28b8d26f
1 changed files with 4 additions and 4 deletions
|
@ -60,10 +60,10 @@ printSizeHumanReadable() {
|
||||||
# worthy. The callback function has access to
|
# worthy. The callback function has access to
|
||||||
# the inner variable $item.
|
# the inner variable $item.
|
||||||
function getRelevantItem() {
|
function getRelevantItem() {
|
||||||
setopt shwordsplit # We need to split the words in $interfaces
|
local -a list
|
||||||
|
local callback
|
||||||
local list callback
|
# Explicitly split the elements by whitespace.
|
||||||
list=$1
|
list=${=1}
|
||||||
callback=$2
|
callback=$2
|
||||||
|
|
||||||
for item in $list; do
|
for item in $list; do
|
||||||
|
|
Loading…
Reference in a new issue