SQLite Forum

Shell command parsing bugs with .open
Login
Yes, that also works. Thanks!

That allows a simplification of [the Perl from the other thread](https://sqlite.org/forum/forumpost/c67659f048) to:

```Perl
my $dbfile = "$SRCDIR/kba.db";
my $bufile = "$TARDIR/$Today.sql";
die "No such backup directory $TARDIR!\n" unless -d $TARDIR;
open my $cmd, '|-', '/usr/bin/sqlite3', $dbfile, ".once $bufile", '.dump'
       or die "Failed to dump DB $dbfile to $bufile: $!\n";
close $cmd or die "Backup to $dbfile failed: $!\n";
```