From 2bd5d3ea2fcb85f9b5fd12ac7554f379f8e972cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aljaz=CC=8C=20=22g5pw=22=20Srebrnic=CC=8C?= Date: Mon, 22 Oct 2012 19:39:20 +0200 Subject: [PATCH] ZSH compatibility fix This fixes ZSH compatibility by ensuring sh_word_split is on. --- lib/git/shell_shortcuts.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/git/shell_shortcuts.sh b/lib/git/shell_shortcuts.sh index 20ecde6..2ceaf50 100644 --- a/lib/git/shell_shortcuts.sh +++ b/lib/git/shell_shortcuts.sh @@ -106,6 +106,7 @@ if [ -n "$_ll_command" ]; then fi # Parse path from args + zsh_compat # Ensure sh_word_split is on OLDIFS="$IFS"; IFS=$'\n' for arg in $@; do if [ -d "$arg" ]; then local rel_path="${arg%/}"; fi @@ -155,6 +156,7 @@ EOF ll_files="$(ls "$@")" fi + zsh_compat # Ensure sh_word_split is on OLDIFS="$IFS"; IFS=$'\n' for file in $ll_files; do if [ -n "$rel_path" ]; then file="$rel_path/$file"; fi