summaryrefslogtreecommitdiff
path: root/etc/functions/gtd-move
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-04-02 11:32:38 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-04-02 11:32:38 +0200
commitf0f3c02a3ccde07d3dc79577c7eca41ea3e8e86f (patch)
treed0aaab1de872a30a94555d2da3b501e13e18c217 /etc/functions/gtd-move
parent81ac4a06bff278f07620804b7d4120342b1f6522 (diff)
Replace $var by ${var}
Diffstat (limited to 'etc/functions/gtd-move')
-rw-r--r--etc/functions/gtd-move14
1 files changed, 7 insertions, 7 deletions
diff --git a/etc/functions/gtd-move b/etc/functions/gtd-move
index fa03800..eed7861 100644
--- a/etc/functions/gtd-move
+++ b/etc/functions/gtd-move
@@ -9,14 +9,14 @@ if [[ ${#*} != 3 ]] {
return
}
-typeset prefix="$HOME/var/gtd"
+typeset prefix="${HOME}/var/gtd"
typeset format='display=%T\n%p'
-typeset from=$1
-typeset itemno=$2
-typeset to=$3
+typeset from=${1}
+typeset itemno=${2}
+typeset to=${3}
typeset IFS=$'\n'
typeset -a item
-item=($(todo --database $prefix/$from --format $format $itemno))
-todo --database $prefix/$to --priority $item[2] --add $item[1]
-todo --database $prefix/$from --remove $itemno
+item=($(todo --database ${prefix}/${from} --format ${format} ${itemno}))
+todo --database ${prefix}/${to} --priority ${item[2]} --add ${item[1]}
+todo --database ${prefix}/${from} --remove ${itemno}