From f0f3c02a3ccde07d3dc79577c7eca41ea3e8e86f Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 2 Apr 2010 11:32:38 +0200 Subject: Replace $var by ${var} --- etc/functions/gtd-move | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'etc/functions/gtd-move') 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} -- cgit v1.2.3