From d7e194b09d40dd5a29668ae61b826ad31c9d4c0f Mon Sep 17 00:00:00 2001 From: Yujie Wu Date: Sat, 1 May 2010 00:49:47 +0800 Subject: [PATCH] Fixed bug for replace command. --- todo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/todo.sh b/todo.sh index 3cbebe39..e430bfb7 100755 --- a/todo.sh +++ b/todo.sh @@ -1011,7 +1011,7 @@ note: PRIORITY must be anywhere from A to Z." if [ -z $priority ]; then sed -i.bak $item" s|^.*|$input|" "$TODO_FILE" else - sed -i.bak -e "$item s/^(.) //" -e "$item s|^.*|\($priority\) $1|" "$TODO_FILE" + sed -i.bak -e "$item s/^(.) //" -e "$item s|^.*|\($priority\) $input|" "$TODO_FILE" fi [ $TODOTXT_VERBOSE -gt 0 ] && { NEWTODO=$(head -$item "$TODO_FILE" | tail -1)