diff options
author | Ankit Jain <radical@corewars.org> | 2008-01-24 15:57:23 +0300 |
---|---|---|
committer | Ankit Jain <radical@corewars.org> | 2008-01-24 15:57:23 +0300 |
commit | f82776d26871df5399eaff8e2cf35c5061cac697 (patch) | |
tree | 41f065b196a5d9b18b47711509de5f1d65e5229f /main/monodevelop.in | |
parent | 47f6088438cef4768e14d600f48f0094cab33534 (diff) |
* mdtool.in:
* monodevelop.in: Handle spaces in arguments.
svn path=/trunk/monodevelop/; revision=93790
Diffstat (limited to 'main/monodevelop.in')
-rwxr-xr-x | main/monodevelop.in | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/main/monodevelop.in b/main/monodevelop.in index c15f1f3446..49df1088d8 100755 --- a/main/monodevelop.in +++ b/main/monodevelop.in @@ -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 @@ fi 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 "$@" |