aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2025-03-12 15:17:13 +0000
committerdrh <>2025-03-12 15:17:13 +0000
commit62d9d70eddda991bd3dedb55c1beb5a23fb6cae8 (patch)
tree697376109da15686206177a023f28dc4064cff22 /src
parenta7829ecbdd9f0d20dd1d4e1386038ab1e7655f5a (diff)
downloadsqlite-62d9d70eddda991bd3dedb55c1beb5a23fb6cae8.tar.gz
sqlite-62d9d70eddda991bd3dedb55c1beb5a23fb6cae8.zip
The --echo flag on the CLI also echos dot-commands provided on the command-line.
FossilOrigin-Name: 6ec0c03b954cf705da076d035a1cc2e784233ae28857385379e44a59af6c5ec4
Diffstat (limited to 'src')
-rw-r--r--src/shell.c.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shell.c.in b/src/shell.c.in
index 655982e73..93d73e6ac 100644
--- a/src/shell.c.in
+++ b/src/shell.c.in
@@ -13475,6 +13475,7 @@ int SQLITE_CDECL wmain(int argc, wchar_t **wargv){
** the database filename.
*/
for(i=0; i<nCmd; i++){
+ echo_group_input(&data, azCmd[i]);
if( azCmd[i][0]=='.' ){
rc = do_meta_command(azCmd[i], &data);
if( rc ){
@@ -13483,7 +13484,6 @@ int SQLITE_CDECL wmain(int argc, wchar_t **wargv){
}
}else{
open_db(&data, 0);
- echo_group_input(&data, azCmd[i]);
rc = shell_exec(&data, azCmd[i], &zErrMsg);
if( zErrMsg || rc ){
if( zErrMsg!=0 ){