[Xapian-discuss] Parameters and the omega binary

Richard Boulton richard at lemurconsulting.com
Mon Dec 4 23:12:59 GMT 2006


> I notice a difference in behaviour for the following two commands on
> the omega binary:
>
> ./omega DB='forum' FMT='searchForum.xml' HITSPERPAGE='25' P='madonna'
>
> ./omega
> DB='forum'
> FMT='searchForum.xml'
> HITSPERPAGE='25'
> P='madonna'

The difference is in the quoting.  For the first example, the quotes are
interpreted by the shell, so omega gets the value "searchForum.xml"
(without the " symbols) for the FMT parameter.  For the second example,
the quotes are not stripped, so the omega gets the value
"'searchForum.xml'" (without the " symbols, but with the ' symbols) for
the FMT parameter.

Instead, do:

./omega
DB=forum
FMT=searchForum.xml
HITSPERPAGE=25
P=madonna

-- 
Richard



More information about the Xapian-discuss mailing list