From 4d3b7472ff02577bec24cd07ec39e7e366896ef5 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Thu, 9 Apr 2009 04:38:48 +0800 Subject: [PATCH] Bugfix: pri accepted priorities of more than a single letter e.g. todo.sh pri 1 aa Signed-off-by: Gina Trapani --- todo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/todo.sh b/todo.sh index 4ceeb4b..347da47 100755 --- a/todo.sh +++ b/todo.sh @@ -831,7 +831,7 @@ note: PRIORITY must be anywhere from A to Z." [ "$#" -ne 3 ] && die "$errmsg" [[ "$item" = +([0-9]) ]] || die "$errmsg" - [[ "$newpri" = +([A-Z]) ]] || die "$errmsg" + [[ "$newpri" = @([A-Z]) ]] || die "$errmsg" sed -e $item"s/^(.) //" -e $item"s/^/($newpri) /" "$TODO_FILE" > /dev/null 2>&1