less ambitious array operations -- for improved compatibility with older versions of bash;
authorwenzelm
Sat, 22 Aug 2009 22:54:36 +0200
changeset 34663 73d53ad05b14
parent 34662 ab54955c9eea
child 34664 8f5fbe4a80ff
less ambitious array operations -- for improved compatibility with older versions of bash;
src/Tools/jEdit/dist-template/interface
--- a/src/Tools/jEdit/dist-template/interface	Thu Aug 13 16:01:55 2009 +0200
+++ b/src/Tools/jEdit/dist-template/interface	Sat Aug 22 22:54:36 2009 +0200
@@ -44,10 +44,10 @@
 do
   case "$OPT" in
     J)
-      JAVA_OPTIONS+=("$OPTARG")
+      JAVA_OPTIONS["${#JAVA_OPTIONS[@]}"]="$OPTARG"
       ;;
     j)
-      OPTIONS+=("$OPTARG")
+      OPTIONS["${#OPTIONS[@]}"]="$OPTARG"
       ;;
     l)
       JEDIT_LOGIC="$OPTARG"
@@ -73,10 +73,10 @@
 declare -a FILES=()
 
 if [ "$#" -eq 0 ]; then
-  FILES+=(Scratch.thy)
+  FILES["${#FILES[@]}"]="Scratch.thy"
 else
   while [ "$#" -gt 0 ]; do
-    FILES+=($(jvmpath "$1"))
+    FILES["${#FILES[@]}"]="$(jvmpath "$1")"
     shift
   done
 fi