mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-30 04:23:24 +02:00
Fix and test handling of backslashes in hooks (#3909)
* Update hooks to use `read -r` and `printf` This portably avoids any interpretation of backslash escapes by the shell. * Support running make_tc_task elsewhere * Add a test for backslashes in task descriptions
This commit is contained in:
parent
7fdcdebd19
commit
c639cc030d
27 changed files with 115 additions and 75 deletions
|
@ -2,9 +2,9 @@
|
|||
|
||||
echo "on-add executed"
|
||||
|
||||
while read TASK; do
|
||||
while read -r TASK; do
|
||||
echo "New task $TASK"
|
||||
echo $TASK
|
||||
printf "%s\n" "$TASK"
|
||||
done
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue