Skip to content

Commit 4537015

Browse files
author
Michael Maltese
committed
Fixes issue where gvp in CMD breaks args
Running `gvp in CMD` breaks the arguments given to `CMD`. For example, if you try to pass a filename with spaces in it, the command will receive the filename broken up into separate arguments, when it should be just one (assuming you escape it correctly). I'm not sure of the other ramifications of the change, but it fixes this issue.
1 parent 17a271b commit 4537015

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/gvp

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ case "$1" in
6767
echo ">> Local GOPATH set."
6868

6969
if [[ -n $2 ]]; then
70-
eval ${@:2}
70+
"${@:2}"
7171
fi
7272
;;
7373
"out")

0 commit comments

Comments
 (0)