On 6 Dec 2008, at 16:02, Sol Foster wrote:
[...] Bingo! When executed from TextMate, COMMAND_MODE=legacy; from the Terminal it's COMMAND_MODE=unix2003. Apparently ar behaves differently depending on the two settings. I don't know how to change that in TextMate (or why it is different), but it was easy enough to add COMMAND_MODE=unix2003 to my build script, and now the builds work just fine.
Wasn’t aware of this, but some details in “man 5 compat”.
My best guess is that launchd sets this for applications it launches based on their deployment target, since TM is built for OS 10.4 it gets the value set to “legacy”.