If the user has a `.sqlite3' file which overrides the default output
options (quite likely, because the default format is rather ugly) then
`check-bkp-status' gets very confused. So add a bunch of options:
* `-batch' suppresses the annoying `Loading resources from
HOME/.sqliterc' banner;
* `-list' forces thing-separated items rather than tabulated output;
* `-separator |' sets the thing which separates items; and
* `-noheader' suppresses the column headings.
Honestly there ought to be a `-norc' option, but there isn't.
case $host:$fs in $p) matchp=t; break ;; esac
done
case $matchp in nil) return ;; esac
- when=$(sqlite3 $INDEXDB \
+ when=$(sqlite3 -batch -list -separator \| -noheader $INDEXDB \
"SELECT MAX(date) FROM idx WHERE host = '$host' AND fs = '$fs';")
case $when in
"")