aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-12-15 16:47:09 +1300
committerTom Ryder <tom@sanctum.geek.nz>2015-12-15 16:47:09 +1300
commitb9ba70ad0be202862ba7c10970f463fcbe90b2a6 (patch)
treee23c67afd441665428560284b335b4c9c63a4ffd /bin
parentShortcut to wrap a line in a function (diff)
downloaddotfiles-b9ba70ad0be202862ba7c10970f463fcbe90b2a6.tar.gz
dotfiles-b9ba70ad0be202862ba7c10970f463fcbe90b2a6.zip
New array append syntax for binscripts
Diffstat (limited to 'bin')
-rwxr-xr-xbin/edda2
-rwxr-xr-xbin/vis4
2 files changed, 3 insertions, 3 deletions
diff --git a/bin/edda b/bin/edda
index 996ed2a5..9fc5e932 100755
--- a/bin/edda
+++ b/bin/edda
@@ -45,7 +45,7 @@ for arg ; do
;;
-*)
shift
- opts=("${opts[@]}" "$arg")
+ opts[${#opts[@]}]=$arg
;;
esac
done
diff --git a/bin/vis b/bin/vis
index efeb6b44..a2114c5d 100755
--- a/bin/vis
+++ b/bin/vis
@@ -32,7 +32,7 @@ for arg ; do
;;
-*)
shift
- opts=("${opts[@]}" "$arg")
+ opts[${#opts[@]}]=$arg
;;
*)
break
@@ -61,7 +61,7 @@ files=("${@/#/$vispath/}")
declare -a creations
for file in "${files[@]}" ; do
[[ -e $file ]] && continue
- creations=("${creations[@]}" "$file")
+ creations[${#creations[@]}]=$file
done
# Run the editor; if EDITOR isn't set, use vi(1)