From d2e0f6e38d25bb0b368c20ca007cb8a4bd05ac0c Mon Sep 17 00:00:00 2001 From: Ingo Karkat Date: Sun, 20 Nov 2011 15:03:19 +0100 Subject: [PATCH] FIX: Support $HOME and $TODOTXT_ACTIONS_DIR containing spaces. And document a minor discrepancy in action completion to todo.sh. --- todo_completion | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/todo_completion b/todo_completion index cc1bd54..c80fba5 100644 --- a/todo_completion +++ b/todo_completion @@ -16,7 +16,8 @@ _todo() mv prepend prep pri p replace report shorthelp" # Add custom commands from add-ons, if installed. - local allCommands="$COMMANDS $('ls' ${TODO_ACTIONS_DIR:-$HOME/.todo.actions.d}/ 2>/dev/null)" + # TODO: Filter for executable flag of files found in $TODO_ACTIONS_DIR. + local allCommands="$COMMANDS $('ls' "${TODO_ACTIONS_DIR:-$HOME/.todo.actions.d}/" 2>/dev/null)" local completions if [ $COMP_CWORD -eq 1 ]; then