MINOR: Removed unnecessary empty & reference in sed substitution.

This commit is contained in:
Ingo Karkat
2010-12-30 23:19:57 +01:00
parent 9760ee23c7
commit a117b7cb3c

View File

@@ -882,7 +882,7 @@ case $action in
now=`date '+%Y-%m-%d'` now=`date '+%Y-%m-%d'`
# remove priority once item is done # remove priority once item is done
sed -i.bak $item"s/^(.) //" "$TODO_FILE" sed -i.bak $item"s/^(.) //" "$TODO_FILE"
sed -i.bak $item"s|^|&x $now |" "$TODO_FILE" sed -i.bak $item"s|^|x $now |" "$TODO_FILE"
if [ $TODOTXT_VERBOSE -gt 0 ]; then if [ $TODOTXT_VERBOSE -gt 0 ]; then
newtodo=$(sed "$item!d" "$TODO_FILE") newtodo=$(sed "$item!d" "$TODO_FILE")
echo "$item $newtodo" echo "$item $newtodo"