Command line option '.read' - Windows version
(1) By anonymous on 2021-04-07 14:27:39 [link] [source]
When I execute SQLITE3.exe with thw .read command it as to be like this:
SQLITE3 M:\USER\DSV\DB\TEST.DB3 ".read M:/USER/DSV/SQL/SQLTEST.SQL"
To specify the database we use the backslash, but for the SQL command file as to be the normal slash, the backslash does not work.
Is there any explanation for this ?
Thanks in advance
Paulo Nunes
(2) By Larry Brasfield (larrybr) on 2021-04-07 14:39:45 in reply to 1 [source]
The backslash is perfectly acceptable to the .read meta-command. With your code, the meta-command argument parser is subjecting the command tail to backslash processing (see resolve_backslashes(...)), in which lone backslash characters and the character following are converted to a single character. If you were to double your backslashes, it would work fine.
(3) By anonymous on 2021-04-07 15:54:42 in reply to 2 [link] [source]
Yes, it works now. Thanks