commit 06b490002f4b9080d6779af1459d6efe7c4b7c5b from: Paul W. Rankin date: Wed Sep 30 14:29:30 2020 UTC Use POSIX function definitions commit - 675d7bf59c4b91c9e31cab3ce1de624008799ddd commit + 06b490002f4b9080d6779af1459d6efe7c4b7c5b blob - ea4cebf40922d67ce190ceac3142c56f71faea37 blob + 3200b057119f5238b8eb44f8db5e683907e5a748 --- t_done.sh +++ t_done.sh @@ -56,7 +56,7 @@ then printf 'No todo file found or environment variabl exit 3 fi -function t_read { +t_read() { if [[ $onlydone ]] then re_prefix=$re_done @@ -86,7 +86,7 @@ function t_read { todo_list=(${due_list[@]} ${todo_list[@]}) } -function t_print { +t_print() { t_read "$query" local n=1 @@ -120,7 +120,7 @@ function t_print { rm "$buffer" } -function t_select { +t_select() { if [[ $1 =~ ^[0-9]+$ ]] then selection=${todo_list[(( $1 - 1 ))]} @@ -131,7 +131,7 @@ function t_select { fi } -function t_done { +t_done() { t_read "$query" t_select "$1" @@ -142,7 +142,7 @@ function t_done { done } -function t_kill { +t_kill() { t_read "$query" t_select "$1" @@ -153,7 +153,7 @@ function t_kill { done } -function t_toggle { +t_toggle() { t_read "$query" t_select "$1" @@ -171,7 +171,7 @@ function t_toggle { done } -function t_openurl { +t_openurl() { t_read "$query" t_select "$1"