Hi Alex,

On 4/19/10 10:28 AM, Alexander Burger wrote:
Hi Jon,

If I use "file -bI" instead, I get "image/jpeg".
That's what I suspected. The 'file' command behaves different on Linux
and Mac (-bI vs -bi).

We must either dispatch depending on the '*OS' global, or find a
portable way.

Does the 'file' command on Mac OS support the '--mime' option? This is
equivalent to '-i' on Linux. If so, we could write the command in the
long form: "file --brief --mime"

Cheers,
- Alex

Yes, "file --brief --mime" on Mac also returns "image/jpeg".

/Jon
--
UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe

Reply via email to