From 62d3ff29775b3df1c33ff726ba4438b1b4f90364 Mon Sep 17 00:00:00 2001 From: Ingo Karkat Date: Fri, 30 Sep 2011 09:11:54 +0200 Subject: [PATCH] BUG: Option -x isn't propagated to custom actions. Somehow, no default is set for TODOTXT_DISABLE_FILTER, so that it isn't exported, and therefore does not apply to the sourced actions, so you cannot disable filtering for "myaction" via todo.sh -x myaction. --- todo.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/todo.sh b/todo.sh index a21356e..36ef038 100755 --- a/todo.sh +++ b/todo.sh @@ -474,6 +474,7 @@ TODOTXT_AUTO_ARCHIVE=${TODOTXT_AUTO_ARCHIVE:-1} TODOTXT_DATE_ON_ADD=${TODOTXT_DATE_ON_ADD:-0} TODOTXT_DEFAULT_ACTION=${TODOTXT_DEFAULT_ACTION:-} TODOTXT_SORT_COMMAND=${TODOTXT_SORT_COMMAND:-env LC_COLLATE=C sort -f -k2} +TODOTXT_DISABLE_FILTER=${TODOTXT_DISABLE_FILTER:-} TODOTXT_FINAL_FILTER=${TODOTXT_FINAL_FILTER:-cat} # Export all TODOTXT_* variables