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"

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

Reply via email to