]> khamidou — GitHub mirrors - arcanist.git/commitdiff
[arcanist] properly handle arguments with spaces
authorNick Harper <nharper@nharper.org>
Sat, 31 Mar 2012 03:28:02 +0000 (20:28 -0700)
committerNick Harper <nharper@nharper.org>
Sat, 31 Mar 2012 03:34:49 +0000 (20:34 -0700)
Summary:
The new wrapper shell script that is bin/arc does not correctly
handle arguments with spaces in them.

Test Plan:
added a print_r($argv) to scripts/arcanist.php and ran bin/arc -m
"testing something" to see that "testing something" got passed in as
one argument instead of two.

Reviewers: jungejason, epriestley

Reviewed By: epriestley

CC: aran
Differential Revision: https://secure.phabricator.com/D2066

bin/arc

diff --git a/bin/arc b/bin/arc
index 8ca8af85cdb66860f9794731b498b400b9884424..4436fa89fb1e0a4f82d68753d916a441cda7db32 100755 (executable)
--- a/bin/arc
+++ b/bin/arc
@@ -11,5 +11,5 @@ while [ -h "$SOURCE" ]; do
 done;
 DIR="$(cd -P "$(dirname "$SOURCE")" && pwd)"
 
-exec $DIR/../scripts/arcanist.php $@
+exec $DIR/../scripts/arcanist.php "$@"