From d2af44d8d3439372dd5731c16b83e9a8e7895317 Mon Sep 17 00:00:00 2001 From: Ingo Karkat Date: Sat, 7 Jan 2012 22:53:40 +0100 Subject: [PATCH] BUG: SED error when HIDE_..._SUBSTITUTION contains whitespace. This error only occurs when add-ons override either HIDE_PROJECTS_SUBSTITUTION or HIDE_CONTEXTS_SUBSTITUTION with a pattern that contains whitespace, not with the values used within todo.sh. But correcting the sloppy quoting doesn't hurt, neither. --- todo.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/todo.sh b/todo.sh index ee5a3f1..94c088c 100755 --- a/todo.sh +++ b/todo.sh @@ -812,8 +812,8 @@ _list() { } ''' \ | sed ''' - s/'${HIDE_PROJECTS_SUBSTITUTION:-^}'//g - s/'${HIDE_CONTEXTS_SUBSTITUTION:-^}'//g + s/'"${HIDE_PROJECTS_SUBSTITUTION:-^}"'//g + s/'"${HIDE_CONTEXTS_SUBSTITUTION:-^}"'//g ''' \ | eval ${TODOTXT_FINAL_FILTER} \ )