Open generalmimon opened 3 years ago
Made some edits:
file
command. Most of the time you only use the command-line interface, but libmagic also provides a C and Python API.linux
tag with unix
, because it's not Linux-specific in any way. If Wikipedia is to be believed, the first file
command appeared on an early Unix version in 1973, and even the open-source implementation used by most Linux distros (and macOS) predates Linux by five years.file
/libmagic source code that reads/writes the binary database format.
- Replaced
linux
tag withunix
, because it's not Linux-specific in any way.
Perhaps, I used linux
only because it is an established tag that KSF site recognizes and includes the format into the https://formats.kaitai.io/#:~:text=GNU/Linux-specific category. I didn't think of factual correctness too much. I am a Windows user and the file
utility definitely seems to me to be more connected with the Linux world 😁
The downside of using unix
tag right now is that it won't be recognized by the KSF site. Maybe we can rename the linux
tag to unix
, now when the set of /meta/tags
values is still pretty recent (it was introduced by @GreyCat a few months ago IIRC)?
Maybe we can rename the
linux
tag tounix
Hm, I'm wondering if it's worth keeping the separate linux
tag in addition to unix
. Of the specs currently tagged as linux
, many are indeed Linux-specific, or at least associated much more with Linux than other Unixes (e. g. btrfs_stream
, cramfs
, ext2
, luks
, lvm2
, systemd_journal
), so a separate linux
tag would still have some use.
I can understand that it would be simpler to have a single unix
tag and also group Linux-specific things under that, especially because then you don't have to decide what counts as really Linux-related or just Unix-related. For example glibc technically supports more than just the Linux kernel (e. g. Hurd), but in practice it's only really used on Linux as far as I know - so do glibc-related formats get tagged as linux
or unix
? But if you go by how the formats are used in practice, I think the distinction is usually clear (e. g. glibc-related formats would be linux
and not unix
).