| Summary: | Flags are not documented properly in man magic | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Trever Adams <trever> |
| Component: | file | Assignee: | Jan Kaluža <jkaluza> |
| Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 14 | CC: | jkaluza |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-01-04 09:58:49 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Trever Adams
2011-07-05 20:56:59 UTC
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. |