Skip to content

Commit

Permalink
Fixed bug for replace command.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yujie Wu authored and ginatrapani committed May 8, 2010
1 parent a4ab8a8 commit d7e194b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion todo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d7e194b

Please sign in to comment.