diff --git a/tests/t1100-replace.sh b/tests/t1100-replace.sh index e39ad4c..e796052 100755 --- a/tests/t1100-replace.sh +++ b/tests/t1100-replace.sh @@ -87,7 +87,7 @@ EOF test_todo_session 'replace error' << EOF >>> todo.sh replace 10 "hej!" === 1 -10: No such todo. +10: No such task. EOF test_done diff --git a/tests/t1600-append.sh b/tests/t1600-append.sh index c56bd79..885074e 100755 --- a/tests/t1600-append.sh +++ b/tests/t1600-append.sh @@ -41,7 +41,7 @@ EOF test_todo_session 'append error' << EOF >>> todo.sh append 10 "hej!" === 1 -10: No such todo. +10: No such task. EOF test_done diff --git a/tests/t1700-depri.sh b/tests/t1700-depri.sh index 3bc3b32..b401c62 100755 --- a/tests/t1700-depri.sh +++ b/tests/t1700-depri.sh @@ -12,7 +12,7 @@ EOF test_todo_session 'depriority nonexistant item' <>> todo.sh depri 42 -42: No such todo. +42: No such task. === 1 EOF diff --git a/tests/t9999-testsuite_example.sh b/tests/t9999-testsuite_example.sh index 620a492..13d6fcc 100755 --- a/tests/t9999-testsuite_example.sh +++ b/tests/t9999-testsuite_example.sh @@ -108,7 +108,7 @@ usage: todo.sh append ITEM# "TEXT TO APPEND" TODO: 5 of 5 tasks shown >>> todo.sh append 10 "hej!" -10: No such todo. +10: No such task. === 1 >>> todo.sh -p list @@ -121,7 +121,7 @@ TODO: 5 of 5 tasks shown TODO: 5 of 5 tasks shown >>> todo.sh do 10 -10: No such todo. +10: No such task. === 1 >>> todo.sh -p list diff --git a/todo.sh b/todo.sh index 5d075bd..50f8e05 100755 --- a/todo.sh +++ b/todo.sh @@ -680,7 +680,7 @@ case $action in [ -z "$item" ] && die "$errmsg" [[ "$item" = +([0-9]) ]] || die "$errmsg" todo=$(sed "$item!d" "$TODO_FILE") - [ -z "$todo" ] && die "$item: No such todo." + [ -z "$todo" ] && die "$item: No such task." if [[ -z "$1" && $TODOTXT_FORCE = 0 ]]; then echo -n "Append: " read input @@ -734,7 +734,7 @@ case $action in echo "TODO: No tasks were deleted." fi else - echo "$item: No such todo." + echo "$item: No such task." fi else sed -i.bak -e $item"s/$3/ /g" "$TODO_FILE" @@ -751,7 +751,7 @@ case $action in for item in `echo $* | tr ',' ' '`; do [[ "$item" = +([0-9]) ]] || die "$errmsg" todo=$(sed "$item!d" "$TODO_FILE") - [ -z "$todo" ] && die "$item: No such todo." + [ -z "$todo" ] && die "$item: No such task." sed -e $item"s/^(.) //" "$TODO_FILE" > /dev/null 2>&1 @@ -782,7 +782,7 @@ case $action in [[ "$item" = +([0-9]) ]] || die "$errmsg" todo=$(sed "$item!d" "$TODO_FILE") - [ -z "$todo" ] && die "$item: No such todo." + [ -z "$todo" ] && die "$item: No such task." # Check if this item has already been done if [ `echo $todo | grep -c "^x "` -eq 0 ] ; then @@ -926,7 +926,7 @@ case $action in [[ "$item" = +([0-9]) ]] || die "$errmsg" todo=$(sed "$item!d" "$TODO_FILE") - [ -z "$todo" ] && die "$item: No such todo." + [ -z "$todo" ] && die "$item: No such task." if [[ -z "$1" && $TODOTXT_FORCE = 0 ]]; then echo -n "Prepend: " @@ -998,7 +998,7 @@ note: PRIORITY must be anywhere from A to Z." [[ "$item" = +([0-9]) ]] || die "$errmsg" todo=$(sed "$item!d" "$TODO_FILE") - [ -z "$todo" ] && die "$item: No such todo." + [ -z "$todo" ] && die "$item: No such task." # Test for then set priority if [ `sed "$item!d" "$TODO_FILE"|grep -c "^(\\w)"` -eq 1 ]; then