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.
This commit is contained in:
Ingo Karkat
2012-01-07 22:53:40 +01:00
committed by Gina Trapani
parent 43bd1b645b
commit 73e28b7225

View File

@@ -819,8 +819,8 @@ _list() {
} }
''' \ ''' \
| sed ''' | sed '''
s/'${HIDE_PROJECTS_SUBSTITUTION:-^}'//g s/'"${HIDE_PROJECTS_SUBSTITUTION:-^}"'//g
s/'${HIDE_CONTEXTS_SUBSTITUTION:-^}'//g s/'"${HIDE_CONTEXTS_SUBSTITUTION:-^}"'//g
''' \ ''' \
| eval ${TODOTXT_FINAL_FILTER} \ | eval ${TODOTXT_FINAL_FILTER} \
) )