ZSH compatibility fix
This fixes ZSH compatibility by ensuring sh_word_split is on.
This commit is contained in:
@@ -106,6 +106,7 @@ if [ -n "$_ll_command" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Parse path from args
|
# Parse path from args
|
||||||
|
zsh_compat # Ensure sh_word_split is on
|
||||||
OLDIFS="$IFS"; IFS=$'\n'
|
OLDIFS="$IFS"; IFS=$'\n'
|
||||||
for arg in $@; do
|
for arg in $@; do
|
||||||
if [ -d "$arg" ]; then local rel_path="${arg%/}"; fi
|
if [ -d "$arg" ]; then local rel_path="${arg%/}"; fi
|
||||||
@@ -155,6 +156,7 @@ EOF
|
|||||||
ll_files="$(ls "$@")"
|
ll_files="$(ls "$@")"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
zsh_compat # Ensure sh_word_split is on
|
||||||
OLDIFS="$IFS"; IFS=$'\n'
|
OLDIFS="$IFS"; IFS=$'\n'
|
||||||
for file in $ll_files; do
|
for file in $ll_files; do
|
||||||
if [ -n "$rel_path" ]; then file="$rel_path/$file"; fi
|
if [ -n "$rel_path" ]; then file="$rel_path/$file"; fi
|
||||||
|
|||||||
Reference in New Issue
Block a user