Handle spaces in path names (Tracker #3166409)

This commit is contained in:
Matthias Neeracher 2011-08-26 15:01:08 +00:00
parent e4782c781d
commit 7b035f66bb
4 changed files with 5 additions and 8 deletions

View File

@ -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];
}

View File

@ -1,3 +1,3 @@
#!/bin/bash -l
exec lame "$*"
exec lame "$@"

View File

@ -1,7 +1,4 @@
#!/bin/bash -l
export PATH="`dirname $1`":$PATH
exec $*
export PATH="`dirname "$1"`":$PATH
exec "$@"

View File

@ -1,4 +1,4 @@
#!/bin/sh -l
cd "${0%/*/*}"/share/mma
exec "${0%/*}"/mma.py $*
exec "${0%/*}"/mma.py "$@"