query command's parsing behavior sensitive to -n
With -n, the first argument is parsed as a string containing subarguments. Otherwise, each argument is parsed as a separate argument. In short, the -n mode mimicks what happens when the query expr after "=" is parsed for automated expressions. The non -n mode mimicks what happens at the command line for users.
This commit is contained in:
parent
627162acc0
commit
9b905f2b44
1 changed files with 2 additions and 1 deletions
|
|
@ -200,7 +200,8 @@ value_t query_command(call_scope_t& args)
|
||||||
args.value().dump(out);
|
args.value().dump(out);
|
||||||
out << std::endl << std::endl;
|
out << std::endl << std::endl;
|
||||||
|
|
||||||
query_t query(args.value(), report.what_to_keep());
|
query_t query(args.value(), report.what_to_keep(),
|
||||||
|
! report.HANDLED(collapse));
|
||||||
if (query) {
|
if (query) {
|
||||||
call_scope_t sub_args(static_cast<scope_t&>(args));
|
call_scope_t sub_args(static_cast<scope_t&>(args));
|
||||||
sub_args.push_back(string_value(query.text()));
|
sub_args.push_back(string_value(query.text()));
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue