Try to avoid the shell for --filter commands
commitc8aea46ca7863a691ce71f87f4f2e56e8161ab33
authorOlly Betts <olly@survex.com>
Fri, 18 Dec 2015 00:02:52 +0000 (18 13:02 +1300)
committerOlly Betts <olly@survex.com>
Fri, 18 Dec 2015 00:31:52 +0000 (18 13:31 +1300)
treeca9fbaa39c3cf2e4e1d48261bc1482263f58ae06
parentc89c199a50d902f6e3cf0697f6678cdae2f75084
Try to avoid the shell for --filter commands

Just check for a set of "bad characters" being present, but implement
support for setting environment variables before the command, so
that we don't have to put '=' in that set, as it's relatively common
in command line arguments - e.g. 'abiword --to=txt --to-name=fd://1'.
Setting environment variables is probably less common, but probably
used, e.g. 'LANG=C some-filter-command'.
xapian-applications/omega/configure.ac
xapian-applications/omega/omindex.cc
xapian-applications/omega/runfilter.cc
xapian-applications/omega/runfilter.h