Bug #98032 The argument for -f should strip leading spaces
Submitted: 19 Dec 2019 10:35 Modified: 19 Dec 2019 10:38
Reporter: Daniël van Eeden (OCA) Email Updates:
Status: Not a Bug Impact on me:
None 
Category:Shell General / Core Client Severity:S3 (Non-critical)
Version:8.0.18 OS:Any
Assigned to: CPU Architecture:Any

[19 Dec 2019 10:35] Daniël van Eeden
Description:
The -f option for mysqlsh doesn't strip leading spaces.
So "-f /tmp/thing.js" checks for " /tmp/thing.js" which doesn't exist, while "/tmp/thing.js" does.

How to repeat:
$ touch /tmp/foo.js
$ mysqlsh -f /tmp/foo.js
Failed to open file ' /tmp/foo.js', error: No such file or directory
$ ./mysqlsh -f/tmp/foo.js
$ 

Suggested fix:
Strip leading spaces
[19 Dec 2019 10:38] Daniël van Eeden
The problem was something different. Please ignore.
[19 Dec 2019 10:59] MySQL Verification Team
Thank you Daniël.

regards,
Umesh