From 8fceae171df474b06c788f6a5881d91b8e2eeb5f Mon Sep 17 00:00:00 2001 From: Gina Trapani Date: Tue, 7 Apr 2009 10:24:06 -0700 Subject: [PATCH] Bugfix: depri no longer wipes out entire task with other parens http://tech.groups.yahoo.com/group/todotxt/message/1828 --- todo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/todo.sh b/todo.sh index 6eab98f..62f2d7f 100755 --- a/todo.sh +++ b/todo.sh @@ -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."