1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-05 04:30:38 +03:00

Shell program saves command-line history on a ".quit". Ticket #614. (CVS 1270)

FossilOrigin-Name: 114b72f8608b8e08fad863a1446fb1ef59610efd
This commit is contained in:
drh
2004-02-25 02:25:37 +00:00
parent 946966f2a1
commit f73287ceb0
3 changed files with 9 additions and 10 deletions

View File

@@ -12,7 +12,7 @@
** This file contains code to implement the "sqlite" command line
** utility for accessing SQLite databases.
**
** $Id: shell.c,v 1.90 2004/02/14 16:31:04 drh Exp $
** $Id: shell.c,v 1.91 2004/02/25 02:25:37 drh Exp $
*/
#include <stdlib.h>
#include <string.h>
@@ -771,8 +771,7 @@ static int do_meta_command(char *zLine, struct callback_data *p){
}else
if( c=='q' && strncmp(azArg[0], "quit", n)==0 ){
if( p->db ) sqlite_close(p->db);
exit(0);
rc = 1;
}else
if( c=='r' && strncmp(azArg[0], "read", n)==0 && nArg==2 ){