[TxMt] TM_USERNAME is null on Leopard

Kai Janson kaijanson at thejeeper.net
Thu Nov 29 19:00:33 UTC 2007


I think it is time for The Fruit to hire UN*X developers. :)

On Nov 29, 2007, at 12:19 PM, Robin Houston wrote:

> 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).
>
> Robin
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate




More information about the textmate mailing list