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
parent f8a6e5f8d6
commit d2af44d8d3

View File

@@ -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} \
)