From 03c4465baf3b348de3afc5fd873d417ae4887def Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Thu, 28 Jan 2016 18:34:42 +0100 Subject: Fix behavior of --todo with an optional argument The previous behavior of --todo was to always only list uncompleted items, unless zero was specified as additional argument. Restore and document this behavior. Also, fix two tests that failed because the --todo output is now sorted. Signed-off-by: Lukas Fleischer --- test/todo-002.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/todo-002.sh') diff --git a/test/todo-002.sh b/test/todo-002.sh index 9e06dc3..8e9e214 100755 --- a/test/todo-002.sh +++ b/test/todo-002.sh @@ -6,7 +6,7 @@ if [ "$1" = 'actual' ]; then "$CALCURSE" --read-only -D "$DATA_DIR"/ -t3 elif [ "$1" = 'expected' ]; then echo 'to do:' - sed -n 's/^\[3\] \(.*\)/3. \1/p' "$DATA_DIR"/todo + sed -n 's/^\[3\] \(.*\)/3. \1/p' "$DATA_DIR"/todo | sort else ./run-test "$0" fi -- cgit v1.2.3-54-g00ecf