From 301dbcf29747c95f8cabc6004cf374b0a88cacb9 Mon Sep 17 00:00:00 2001 From: Ingo Karkat Date: Tue, 31 May 2011 15:46:14 +0200 Subject: [PATCH] Expose cleaninput() for use in addons. Despite its hard-coded use of $input, this can be useful in addons, too. (I, for example, use this in a "todo.sh subst" addon that delegates to the "todo.sh replace" action after performing a sed-style replacement on the passed pattern and replacement.) --- todo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/todo.sh b/todo.sh index 9920e60..f91d935 100755 --- a/todo.sh +++ b/todo.sh @@ -751,7 +751,7 @@ _list() { fi } -export -f _list die +export -f cleaninput _list die # == HANDLE ACTION == action=$( printf "%s\n" "$ACTION" | tr 'A-Z' 'a-z' )