From 8b7e2e6aada05fd824cbb19dcf88e869d27b8282 Mon Sep 17 00:00:00 2001 From: Ed Blackman Date: Wed, 9 Jun 2010 03:31:56 +0800 Subject: [PATCH] Replace colorization sed scripts with ones that are more compatible with OSX sed and NLS todo items. They're also more consistent with other internal usage of sed. --- todo.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/todo.sh b/todo.sh index fc1fd16..cad4312 100755 --- a/todo.sh +++ b/todo.sh @@ -572,10 +572,10 @@ _list() { | eval ${TODOTXT_SORT_COMMAND} \ | sed ''' /^[0-9]\{'$PADDING'\} x /! { - s/\(.*(A).*\)/'$PRI_A'\1'$DEFAULT'/g; - s/\(.*(B).*\)/'$PRI_B'\1'$DEFAULT'/g; - s/\(.*(C).*\)/'$PRI_C'\1'$DEFAULT'/g; - s/\(.*([D-Z]).*\)/'$PRI_X'\1'$DEFAULT'/g; + /(A)/ s|^.*|'$PRI_A'&'$DEFAULT'| + /(B)/ s|^.*|'$PRI_B'&'$DEFAULT'| + /(C)/ s|^.*|'$PRI_C'&'$DEFAULT'| + /([D-Z])/ s|^.*|'$PRI_X'&'$DEFAULT'| } ''' \ | sed '''