P3help wantedteam-CLItype: feature request
Description
Description of the feature request:
The bazel query command supports a --null flag which expands out to --line_terminator_null=true.
This feature is useful for piping the output of the query command. The \0 (NUL) character is useful to unambiguously separate the output. Other tools such as GNU parallel, xargs, find, grep, etc... support separating input/output with NUL characters.
For all the reasons that the --null flag is useful for query, it should be added to aquery and cquery as well for consistency. They already support the --line_terminator_null flag anyway.
Which category does this issue belong to?
CLI
What underlying problem are you trying to solve with this feature?
There is an inconsistency in between query, aquery, and cquery commands.
Which operating system are you running Bazel on?
Linux
What is the output of bazel info release?
release 7.7.1
If bazel info release returns development version or (@non-git), tell us how you built Bazel.
No response
What's the output of git remote get-url origin; git rev-parse HEAD ?
https://github.com/bazelbuild/bazel.git
8b330812188b7323e852f733344fc5e1645f1a08
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response