taskwarrior/test/test_hooks/on-modify.dummy
Dustin J. Mitchell c639cc030d
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
2025-07-08 08:40:34 +02:00

11 lines
149 B
Bash
Executable file

#!/bin/sh
echo "on-modify executed"
read -r TASK
read -r MODTASK
echo "Existing task $TASK modified to $MODTASK"
printf "%s\n" "$MODTASK"
exit 0