Bug #92030 mysqlsh gives inconsistent responses from \? help look ups
Submitted: 15 Aug 2018 21:36 Modified: 12 Sep 2018 11:00
Reporter: Matthew Montgomery Email Updates:
Status: Closed Impact on me:
None 
Category:Shell General / Core Client Severity:S3 (Non-critical)
Version:8.0.12 OS:Windows
Assigned to: CPU Architecture:x86

[15 Aug 2018 21:36] Matthew Montgomery
Description:
mysqlsh gives inconsistent responses from \? help lookups when extra spaces are presented.

How to repeat:
\? with trailing space:

 MySQL  localhost:6446 ssl  test  JS > \? shell 
No help items found matching shell

\? with leading space: 
 MySQL  localhost:6446 ssl  test  JS > \?  shell
No help items found matching  shell

\? with no extraneous spaces:
 MySQL  localhost:6446 ssl  test  JS > \? shell
NAME
      shell - Gives access to general purpose functions and properties. 
[...]

Suggested fix:
Trim extraneous spaces from help argument.
[16 Aug 2018 5:22] MySQL Verification Team
Hello Montgomery,

Thank you for the report and feedback.
Verified as described with MySQL Shell 8.0.12 on OL7.

regards,
Umesh
[12 Sep 2018 11:00] Margaret Fisher
Posted by developer:
 
Changelog entry added for MySQL Shell 8.0.13:

Extra spaces before or after the parameter used with the \help command are now trimmed. Previously, the presence of extra spaces made MySQL Shell unable to find the relevant help topic.