Remove 'eval' from b to fix quoted arguments.
eval doesn't seem to be necessary and using it breaks quoted args to query.
$ b cquery 'kind(test, //build/bazel/...)'
-bash: eval: line 99: syntax error near unexpected token `('
-bash: eval: line 99: ')`bazel cquery kind(test, //build/bazel/...)
---config=bp2build ''
Test: source and rerun b cquery with quoted args
Change-Id: I2b8c4387ab729b5f927fe5a629d3a4cd58bcf901
diff --git a/envsetup.sh b/envsetup.sh
index 852352d..b4cf424 100644
--- a/envsetup.sh
+++ b/envsetup.sh
@@ -1873,7 +1873,7 @@
if [[ $config_set -ne 1 ]]; then
bazel_args_with_config+="--config=bp2build "
fi
- eval "bazel $bazel_args_with_config"
+ bazel $bazel_args_with_config
fi
)