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.
This commit is contained in:
Wilhelm Schuermann 2015-10-15 17:39:09 +02:00
parent dc92e7ca32
commit acbad7568c

View file

@ -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 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 if [ -f "$t" ] && [ -x "$t" ]; then
t_abs=$(bashtap_get_absolute_path "$t") t_abs=$(bashtap_get_absolute_path "$t")
eval "function task { ${t_abs} rc:taskrc \$@; }" eval "function task { ${t_abs} rc:taskrc \"\$@\"; }"
return 0 return 0
fi fi
done done