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
Dustin J. Mitchell
cf6c0254dc
Add shell quoting and 'read -r' in example hooks ( #3905 )
...
This helps to avoid interpretation of escape sequences, such as
backslash-escapes, in these values.
Patch provided by @bughunter2 in https://github.com/GothenburgBitFactory/taskwarrior/issues/3899 .
2025-06-26 15:34:43 +02:00
Paul Beckingham
8e730f2da3
Hooks
...
- Updated examples to not rely on bash being in /bin.
2015-02-07 10:25:50 -05:00
Wilhelm Schuermann
ffc456be88
Hooks
...
- Cleaned up on-add.the example hook; now works with huge input without falling over.
2014-10-02 14:50:52 -04:00
Paul Beckingham
ec0757b2c9
Hooks
...
- Added example of spelling correction via hook script.
2014-09-09 23:08:38 -04:00