Index: src/shell.c ================================================================== --- src/shell.c +++ src/shell.c @@ -22,11 +22,11 @@ ** ************************************************************************* ** This file contains code to implement the "sqlite" command line ** utility for accessing SQLite databases. ** -** $Id: shell.c,v 1.10 2000/06/07 01:27:48 drh Exp $ +** $Id: shell.c,v 1.11 2000/06/07 01:33:42 drh Exp $ */ #include #include #include #include "sqlite.h" @@ -212,10 +212,11 @@ } if( z[j] ){ fprintf(p->out, "\\%c", z[j]); z = &z[j+1]; } + z += j; } fprintf(p->out, "%s", i==nArg-1 ? "\n" : p->separator); } break; } @@ -259,11 +260,11 @@ fprintf(pData->out, "COPY '%s' FROM STDIN;\n", azArg[0]); sprintf(zSql, "SELECT * FROM '%s'", azArg[0]); sqlite_exec(pData->db, zSql, callback, &d2, 0); fprintf(pData->out, "\\.\n"); } - fprintf(pData->out, "VACUUM '%s';\n", azArg[2]); + fprintf(pData->out, "VACUUM '%s';\n", azArg[0]); return 0; } /* ** Text of a help message