Hide Forgot
Description of problem: In man magic, the flags listed do not appear to match the magic file [BBc] are listed under the string section. Yet in the file you also see cWbt for example. http://www.manpagez.com/man/5/magic/ seems to list the current options and they seem to match the contents of the magic file. Version-Release number of selected component (if applicable): file-libs-5.04-17.fc14.x86_64
Hi, I've compared http://www.manpagez.com/man/5/magic/ and "man magic" and they look same... Can you please show me where the difference is?
From the webpage: string A string of bytes. The string type specification can be optionally followed by /[WwcCtb]*. The ``W'' 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 ``w'' flag treats every blank in the target as an optional blank. The ``c'' flag, specifies case insensitive matching: lower case characters in the magic match both lower and upper case characters in the target, whereas upper case characters in the magic only match upper case characters in the target. The ``C'' flag, specifies case insensitive matching: upper case characters in the magic match both lower and upper case characters in the target, whereas lower case characters in the magic only match upper case characters in the target. To do a complete case insensitive match, specify both ``c'' and ``C''. The ``t'' flag, forces the test to be done for text files, while the ``b'' flag, forces the test to be done for binary files. From the man page on fc14: 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 con‐ tain 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, specifies case insen‐ sitive matching: lowercase characters 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.
Ah, this is fixed in file-5.07, which is already in F15 and rawhide. I will backport it once there'll be bigger File update for F14. I don't think just manpage change is enough for updating File.
Since it's fixed in F15+ and F14 is not supported anymore, I'm closing this bug.