Package: file
Version: 5.04-4
Severity: normal

The magic(5) man page says:

      string      A string of bytes.  The string type specification
                  can be optionally followed by /[Bbc]*.  The "B"
                  flag compacts whitespace in the target, which
                  must contain at least one whitespace character.
                  If the magic has n consecutive blanks, the target
                  needs at least n consecutive blanks to match.
                  The "b" flag treats every blank in the target as
                  an optional blank.  Finally the "c" flag, speci-
                  fies case insensitive matching: lowercase charac-
                  ters in the magic match both lower and upper case
                  characters in the target, whereas upper case
                  characters in the magic only match uppercase
                  characters in the target.

      search      A literal string search starting at the given
                  offset. The same modifier flags can be used as
                  for string patterns. The modifier flags (if any)
                  must be followed by /number the range, that is,
                  the number of positions at which the match will
                  be attempted, starting from the start offset.
                  This is suitable for searching larger binary
                  expressions with variable offsets, using \
                  escapes for special characters. The offset works
                  as for regex.

but in the source, magic/Magdir/sgml contains:

0       search/1/cwbt   \<?xml                  XML document text

There are undocumented flags, and the flags are not followed
by /number.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.ISO8859-1 (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash

Versions of packages libmagic1 depends on:
ii  libc6                   2.11.2-2         Embedded GNU C Library: Shared lib
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

libmagic1 recommends no packages.

Versions of packages libmagic1 suggests:
ii  file                          5.04-4     Determines file type using "magic"

Versions of packages file depends on:
ii  libc6                   2.11.2-2         Embedded GNU C Library: Shared lib
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to