From 55015f507113609501e58c545ac73122ea95060e Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Sun, 12 Apr 2009 00:56:58 +0200 Subject: [PATCH] Bugfix: support commands combination for TODOTXT_SORT_COMMAND So now e.g. piped commands can be used: export TODOTXT_SORT_COMMAND=" env LC_COLLATE=C sort -f -k2 - | grep -m 10 ." --- todo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/todo.sh b/todo.sh index fc41daa..a773375 100755 --- a/todo.sh +++ b/todo.sh @@ -495,7 +495,7 @@ _list() { s/^ /00/; s/^ /0/; ''' \ - | ${TODOTXT_SORT_COMMAND} \ + | eval ${TODOTXT_SORT_COMMAND} \ | sed ''' /^[0-9]\{'$PADDING'\} x /! { s/\(.*(A).*\)/'$PRI_A'\1'$DEFAULT'/g;