Bugfix: depri no longer wipes out entire task with other parens http://tech.groups.yahoo.com/group/todotxt/message/1828

This commit is contained in:
Gina Trapani
2009-04-07 10:24:06 -07:00
parent 9898e7df3f
commit 8fceae171d

View File

@@ -633,7 +633,7 @@ case $action in
if [ "$?" -eq 0 ]; then
#it's all good, continue
sed -i.bak -e $2"s/^(.*) //" "$TODO_FILE"
sed -i.bak -e $2"s/^([^)]*) //" "$TODO_FILE"
NEWTODO=$(sed "$2!d" "$TODO_FILE")
[ $TODOTXT_VERBOSE -gt 0 ] && echo -e "`echo "$item: $NEWTODO"`"
[ $TODOTXT_VERBOSE -gt 0 ] && echo "TODO: $item deprioritized."