ISABELLE_USEDIR_OPTIONS: proper word splitting of quoted options (via array variable and special expansion, cf. "$@");
authorwenzelm
Sat, 30 May 2009 22:37:38 +0200
changeset 31307 7015fee8c3e8
parent 31306 a74ee84288a0
child 31308 3fd52453ae81
ISABELLE_USEDIR_OPTIONS: proper word splitting of quoted options (via array variable and special expansion, cf. "$@");
lib/Tools/usedir
--- a/lib/Tools/usedir	Sat May 30 15:53:19 2009 +0200
+++ b/lib/Tools/usedir	Sat May 30 22:37:38 2009 +0200
@@ -175,7 +175,8 @@
   done
 }
 
-getoptions $ISABELLE_USEDIR_OPTIONS
+eval "OPTIONS=($ISABELLE_USEDIR_OPTIONS)"
+getoptions "${OPTIONS[@]}"
 
 getoptions "$@"
 shift $(($OPTIND - 1))