Jon,
I don't agree.
You may be right about the ATTACH behaviour.
But the fact remains : sqlite3 doesn't return a proper exit code for dot
commands.
Furthermore the error messages for SQL commands appear on stdout
A dot command :
$ echo ".import /dev/null does_not_exist" | sqlite3 lala.db
Error: no such table: does_not_exist
$ echo $?
0
The error message appears on stderr
A SQL command:
$ echo "select * from does_not_exist;" | sqlite3 lala.db
SQL error near line 1: no such table: does_not_exist
$ echo $?
1
The error message appears on stdout
Regards
chriss
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users