From acbad7568c9f8b87d26f8a0c92d912dbe2e675ee Mon Sep 17 00:00:00 2001 From: Wilhelm Schuermann Date: Thu, 15 Oct 2015 17:39:09 +0200 Subject: [PATCH] Test: Fix problem with "task" wrapper function - Arguments with spaces like foo:'bar baz' were improperly passed to Taskwarrior before. This only affected bash_tap.sh tests, the Python tests have always been handling this properly. --- test/bash_tap_tw.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/bash_tap_tw.sh b/test/bash_tap_tw.sh index 28b5ff5b2..24ef801e2 100644 --- a/test/bash_tap_tw.sh +++ b/test/bash_tap_tw.sh @@ -36,7 +36,7 @@ function find_task_binary { for t in "${bashtap_org_pwd}/task" "${bashtap_org_pwd}/src/task" "${bashtap_org_pwd}/../task" "${bashtap_org_pwd}/../src/task" "${bashtap_org_pwd}/../build/src/task"; do if [ -f "$t" ] && [ -x "$t" ]; then t_abs=$(bashtap_get_absolute_path "$t") - eval "function task { ${t_abs} rc:taskrc \$@; }" + eval "function task { ${t_abs} rc:taskrc \"\$@\"; }" return 0 fi done