mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-19 09:53:08 +02:00
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:
parent
dc92e7ca32
commit
acbad7568c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue