[sqlite] sqlite3 command line shell bug?

1 view
Skip to first unread message

Baruch Burstein

unread,
Mar 20, 2012, 4:28:17 PM3/20/12
to General Discussion of SQLite Database
I just noticed that the dot-commands are tested by the length of the input,
not of the correct term. For example, '.e' will match '.exit' (it would
also match '.explain', except it matches '.exit' first). Is this intended
behavior? And if so, why should '.e' match '.exit' any more than '.explain'?

--
Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the Universe trying to produce
bigger and better idiots. So far, the Universe is winning. - Rich Cook
_______________________________________________
sqlite-users mailing list
sqlite...@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Oliver Peters

unread,
Mar 20, 2012, 4:58:33 PM3/20/12
to sqlite...@sqlite.org
Am 20.03.2012 21:28, schrieb Baruch Burstein:
> I just noticed that the dot-commands are tested by the length of the input,
> not of the correct term. For example, '.e' will match '.exit' (it would
> also match '.explain', except it matches '.exit' first). Is this intended
> behavior? And if so, why should '.e' match '.exit' any more than '.explain'?
>

SELECT 'explain' > 'exit';

Reply all
Reply to author
Forward
0 new messages