From e3fce6f12b324483fb2f5e3ab9bcb660897a44f3 Mon Sep 17 00:00:00 2001 From: Ingo Karkat Date: Thu, 3 Nov 2011 18:37:36 +0100 Subject: [PATCH] Revert to safer POSIX AWK regexp. AWK from Ubuntu 8.04 (mawk) doesn't support [[:space:]]; so for backwards compatibility use a plain ASCII space instead. --- todo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/todo.sh b/todo.sh index b256738..4ab322c 100755 --- a/todo.sh +++ b/todo.sh @@ -722,7 +722,7 @@ _list() { { if (match($0, /^[0-9]+ x /)) { print highlight("COLOR_DONE") $0 highlight("DEFAULT") - } else if (match($0, /^[0-9]+ \([A-Z]\)[[:space:]]/)) { + } else if (match($0, /^[0-9]+ \([A-Z]\) /)) { clr = highlight("PRI_" substr($0, RSTART + RLENGTH - 3, 1)) print \ (clr ? clr : highlight("PRI_X")) \