Running ./configure and testing for python through PATH
gives out a bunch of errors because of the extra arguments.
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
for dir in $PATH; do
IFS=$ovs_save_IFS
test -z "$dir" && dir=.
- if test -x $dir/$binary && $dir/$binary -c 'import sys
+ if test -x "$dir"/"$binary" && "$dir"/"$binary" -c 'import sys
if sys.hexversion >= 0x02040000 and sys.hexversion < 0x03000000:
sys.exit(0)
else: