On 26/05/2008, at 12:08 AM, Xavier wrote:
Sebastian Nowicki wrote:
The equivalent of the "-i" argument for file on Linux is "-I" on BSD. Both version allow the use of the long option "--mime".
I checked freebsd and netbsd man pages, both seem to use -i as well. I could not check openbsd one, the page is unavailable. Where can we find other (older?) bsd man pages?
I thought I sent a mail about that earlier, but I guess it didn't go through. -I is used on Mac OSX. When sending the patch I thought I checked that this was the case in other BSD man pages, but I must have confused that with something else. From the Mac OSX (Leopard 1.5) man page:
-I, --mime Causes the file command to output mime type strings rather than the more traditional human readable ones. Thus it may say ``text/plain; charset=us-ascii'' rather than ``ASCII text''. In order for this option to work, file changes the way it han- dles files recognised by the command itself (such as many of the text file types, directories etc), and makes use of an alternative ``magic'' file. (See ``FILES'' section, below).
-i If the file is a regular file do not classify its contents.
You can find the online copy here: http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/file... I just looked through it again and it appears there's a "legacy" section, which does use the lower case -i… -- Sebastian Nowicki