shared-mime-info: match offset attribute with '>' expressions?
daniel.leidert.spam at gmx.net
Tue May 9 14:41:28 EEST 2006
Am Dienstag, den 09.05.2006, 13:00 +0200 schrieb David Faure:
> On Monday 08 May 2006 13:46, Daniel Leidert wrote:
> > Hello,
> > A question. The (probably outdated?) shared-mime-info database
> > specification states, that the offset attribute can contain a single
> > number or a range in the form 'start:end'. But KDE MIME magic e.g. also
> > allows an expression '>start'. Wouldn't it be nice to have such an
> > expression too?
> I think you are confused about the expression ">start". This syntax, coming from
> the magic file for the file(1) command, means " and if the data at [start] is ".
> It's a continuation line, used to add a new criteria to a previous line, the ">" basically
> means "and". Not "starting from".
Ok thanks. Then I misunderstood the syntax.
> For mimetype-determination-from-contents to be
> fast, offsets have to be fixed, not variable.
More information about the xdg