[MDEV-23818] mysql option --script-dir Created: 2020-09-25  Updated: 2021-10-13

Status: Open
Project: MariaDB Server
Component/s: Scripts & Clients
Fix Version/s: None

Type: Task Priority: Major
Reporter: Richard Stracke Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: beginner-friendly


 Description   

If the mysql client starts a script (regardsless if via < or source funtion),
and the script invokes other scripts (only scriptnames without pathes),
mysql search the scripts only in the working dir of mysql client.

Add an option
--script-dir=<directorypath>
which set the path, where scripts will be searched via source command in a sql-scripts

Default is still mysql client path



 Comments   
Comment by Sergei Golubchik [ 2020-09-25 ]

conventionally, -I (uppercase i, not lowercase L) is used for paths like that.

For some weird historical reason it means --help in mysql client, as if -? wasn't enough.

May be it should be changed to mean --script-dir ?

Generated at Thu Feb 08 09:25:17 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.