Author: ankit
Date: 2008-01-24 07:57:07 -0500 (Thu, 24 Jan 2008)
New Revision: 93789
Modified:
branches/monodevelop/main/1.0/ChangeLog
branches/monodevelop/main/1.0/mdtool.in
branches/monodevelop/main/1.0/monodevelop.in
Log:
* mdtool.in:
* monodevelop.in: Handle spaces in arguments.
Modified: branches/monodevelop/main/1.0/ChangeLog
===================================================================
--- branches/monodevelop/main/1.0/ChangeLog 2008-01-24 12:45:29 UTC (rev
93788)
+++ branches/monodevelop/main/1.0/ChangeLog 2008-01-24 12:57:07 UTC (rev
93789)
@@ -1,3 +1,9 @@
+2008-01-24 Ankit Jain <[EMAIL PROTECTED]>
+ Raja R Harinath <[EMAIL PROTECTED]>
+
+ * mdtool.in:
+ * monodevelop.in: Handle spaces in arguments.
+
2008-01-23 Michael Hutchinson <[EMAIL PROTECTED]>
* autogen.sh: Update ftp addresses for packages.
Modified: branches/monodevelop/main/1.0/mdtool.in
===================================================================
--- branches/monodevelop/main/1.0/mdtool.in 2008-01-24 12:45:29 UTC (rev
93788)
+++ branches/monodevelop/main/1.0/mdtool.in 2008-01-24 12:57:07 UTC (rev
93789)
@@ -3,13 +3,13 @@
reWrite() {
ret=""
WD=`pwd`
- for arg in $*
+ for arg in "$@"
do
- if [ -f ./$arg ]
+ if [ -f "./$arg" ]
then
- ret="$ret $WD/$arg"
+ ret="$ret '$WD/$arg'"
else
- ret="$ret $arg"
+ ret="$ret '$arg'"
fi
done
@@ -29,27 +29,26 @@
export PKG_CONFIG_PATH=$MD_PKG_CONFIG_PATH
fi
-ARGS=`reWrite "$@"`
-set -- $ARGS
+eval set -- `reWrite "$@"`
case x$1 in
x--profile)
shift
- exec -a "mdtool" @RUNTIME@ --profile $MD_BIN_PATH/mdrun.exe $@
+ exec -a "mdtool" @RUNTIME@ --profile $MD_BIN_PATH/mdrun.exe "$@"
exit 0
;;
x--debug)
shift
export MONODEVELOP_DISPATCH_DEBUG=yes
- exec -a "mdtool" @RUNTIME@ --debug $MD_BIN_PATH/mdrun.exe $@
+ exec -a "mdtool" @RUNTIME@ --debug $MD_BIN_PATH/mdrun.exe "$@"
exit 0
;;
x--trace)
shift
- exec -a "mdtool" @RUNTIME@ --trace $MD_BIN_PATH/mdrun.exe $@
+ exec -a "mdtool" @RUNTIME@ --trace $MD_BIN_PATH/mdrun.exe "$@"
exit 0;
;;
esac
-exec @RUNTIME@ $MD_BIN_PATH/mdrun.exe $@
+exec @RUNTIME@ $MD_BIN_PATH/mdrun.exe "$@"
Modified: branches/monodevelop/main/1.0/monodevelop.in
===================================================================
--- branches/monodevelop/main/1.0/monodevelop.in 2008-01-24 12:45:29 UTC
(rev 93788)
+++ branches/monodevelop/main/1.0/monodevelop.in 2008-01-24 12:57:07 UTC
(rev 93789)
@@ -3,17 +3,17 @@
reWrite() {
ret=""
WD=`pwd`
- for arg in $*
+ for arg in "$@"
do
- if [ -f ./$arg ]
+ if [ -f "./$arg" ]
then
- ret="$ret $WD/$arg"
+ ret="$ret '$WD/$arg'"
else
- ret="$ret $arg"
+ ret="$ret '$arg'"
fi
done
- echo "$ret"
+ echo "$ret"
}
@@ -73,29 +73,28 @@
export MOZILLA_FIVE_HOME=$MOZILLA_HOME
-ARGS=`reWrite "$@"`
-set -- $ARGS
+eval set -- `reWrite "$@"`
cd $MD_BIN_PATH
case x$1 in
x--profile)
shift
- exec -a "monodevelop" @RUNTIME@ --profile ./MonoDevelop.exe $@
+ exec -a "monodevelop" @RUNTIME@ --profile ./MonoDevelop.exe "$@"
exit 0
;;
x--debug)
shift
export MONODEVELOP_DISPATCH_DEBUG=yes
- exec -a "monodevelop" @RUNTIME@ --debug ./MonoDevelop.exe $@
+ exec -a "monodevelop" @RUNTIME@ --debug ./MonoDevelop.exe "$@"
exit 0
;;
x--trace)
shift
- exec -a "monodevelop" @RUNTIME@ --trace ./MonoDevelop.exe $@
+ exec -a "monodevelop" @RUNTIME@ --trace ./MonoDevelop.exe "$@"
exit 0;
;;
esac
-exec -a "monodevelop" @RUNTIME@ ./MonoDevelop.exe $@
+exec -a "monodevelop" @RUNTIME@ ./MonoDevelop.exe "$@"
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches