From 4643dce6985b9ebd4fbea3270e0ff91c3016a540 Mon Sep 17 00:00:00 2001 From: Ingo Karkat Date: Wed, 11 May 2011 15:32:31 +0200 Subject: [PATCH] Remove no-op passing of $input to cleaninput(). The function actually uses and modifies the global variable directly. --- todo.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/todo.sh b/todo.sh index d59092a..f7643e3 100755 --- a/todo.sh +++ b/todo.sh @@ -321,7 +321,7 @@ replaceOrPrepend() else input=$* fi - cleaninput $input + cleaninput # Retrieve existing priority and prepended date priority=$(sed -e "$item!d" -e $item's/^\(([A-Z]) \)\{0,1\}\([0-9]\{2,4\}-[0-9]\{2\}-[0-9]\{2\} \)\{0,1\}.*/\1/' "$TODO_FILE") @@ -615,7 +615,7 @@ fi _addto() { file="$1" input="$2" - cleaninput $input + cleaninput if [[ $TODOTXT_DATE_ON_ADD = 1 ]]; then now=`date '+%Y-%m-%d'` @@ -842,7 +842,7 @@ case $action in [$SENTENCE_DELIMITERS]*) appendspace=;; *) appendspace=" ";; esac - cleaninput $input + cleaninput if sed -i.bak $item" s|^.*|&${appendspace}${input}|" "$TODO_FILE"; then if [ $TODOTXT_VERBOSE -gt 0 ]; then