From 7b035f66bb7777f6c67d9ca700f48eb2cfb033b3 Mon Sep 17 00:00:00 2001 From: Matthias Neeracher Date: Fri, 26 Aug 2011 15:01:08 +0000 Subject: [PATCH] Handle spaces in path names (Tracker #3166409) --- Sources/VLAppController.mm | 2 +- Tools/lameWrapper | 2 +- Tools/lilyWrapper | 7 ++----- Tools/mmaWrapper | 2 +- 4 files changed, 5 insertions(+), 8 deletions(-) diff --git a/Sources/VLAppController.mm b/Sources/VLAppController.mm index cdccfa8..714a8aa 100644 --- a/Sources/VLAppController.mm +++ b/Sources/VLAppController.mm @@ -100,7 +100,7 @@ { NSString * cmd = [NSString stringWithFormat: - @"%@ --version | head -1 | awk '{ print $3 }'", + @"\"%@\" --version | head -1 | awk '{ print $3 }'", path]; return [self getLineFromCommand:cmd]; } diff --git a/Tools/lameWrapper b/Tools/lameWrapper index 281218a..6716404 100755 --- a/Tools/lameWrapper +++ b/Tools/lameWrapper @@ -1,3 +1,3 @@ #!/bin/bash -l -exec lame "$*" +exec lame "$@" diff --git a/Tools/lilyWrapper b/Tools/lilyWrapper index 50b1ab0..695628a 100755 --- a/Tools/lilyWrapper +++ b/Tools/lilyWrapper @@ -1,7 +1,4 @@ #!/bin/bash -l -export PATH="`dirname $1`":$PATH -exec $* - - - +export PATH="`dirname "$1"`":$PATH +exec "$@" diff --git a/Tools/mmaWrapper b/Tools/mmaWrapper index ace5274..c717544 100755 --- a/Tools/mmaWrapper +++ b/Tools/mmaWrapper @@ -1,4 +1,4 @@ #!/bin/sh -l cd "${0%/*/*}"/share/mma -exec "${0%/*}"/mma.py $* +exec "${0%/*}"/mma.py "$@"