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 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

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.039 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.