[TxMt] TM_USERNAME is null on Leopard

Robin Houston robin.houston at gmail.com
Thu Nov 29 18:19:21 UTC 2007

On 29/11/2007, Kai Janson <kaijanson at thejeeper.net> wrote:
> Yes, I am running Leopard 10.5.1 and there is actually a white space in
> front of the name.

Wow, that's awful. Thanks. Why is it that Apple are so dreadful at
making command-line tools that work in a sensible way?

If we need to do this (and Peter's comment is making me wonder whether
or not we do), then at least

  perl -le 'print +(getpwuid $<)[6]'

is portable and concise (and not likely to break when Apple change
their bizarre tool in yet another incompatible way).


More information about the textmate mailing list