summaryrefslogtreecommitdiff
path: root/public/bash-arrays.md
diff options
context:
space:
mode:
Diffstat (limited to 'public/bash-arrays.md')
-rw-r--r--public/bash-arrays.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/public/bash-arrays.md b/public/bash-arrays.md
index 0589726..cbbd4c4 100644
--- a/public/bash-arrays.md
+++ b/public/bash-arrays.md
@@ -350,7 +350,8 @@ an array is when you didn't want an array, but it's what you get
path_ls() {
local dirs
IFS=: dirs=($@) # The odd-ball time that it needs to be unquoted
- find -L "${dirs[@]}" -maxdepth 1 -type f -executable -printf '%f\n' 2>/dev/null | sort -u
+ find -L "${dirs[@]}" -maxdepth 1 -type f -executable \
+ -printf '%f\n' 2>/dev/null | sort -u
}
Logically, there shouldn't be multiple arguments, just a single