[File] Types uelong+8, string/f, regex/30c, etc.
Sudarshan S Chawathe
chaw at eip10.org
Sat Feb 15 19:12:27 UTC 2025
There are several occurrences of tests in which the type field looks
something like 'uelong+8' or 'uleshort/100'. (Both of these specific
ones are in Magdir/riff.) The meaning of such suffixes to the type is
easy to infer but it does not seem to be documented in 'man magic' (or I
somehow missed it).
On a related note, I also found some instances of the modifier 'f' for
strings and I do not understand its semantics. In particular several
instances of 'string/fwt' appear in Magdir/commands, for instance.
Also, when types are suffixed by both length and other modifiers (e.g.,
regex/30/c), is it valid to omit the second slash (e.g., regex/30c)? My
reading of the man page suggests no, but I found one instance of
regex/30c in Magdir/games.
I would be grateful for any clarifications or pointers.
Regards,
-chaw
More information about the File
mailing list