[TxMt] TM_USERNAME is null on Leopard

Robin Houston robin.houston at gmail.com
Thu Nov 29 14:14:40 UTC 2007


On 29/11/2007, Kai Janson <kaijanson at thejeeper.net> wrote:
> dscl . -read /Users/$USER RealName |sed -e "s/RealName://" -e "s/^
> \ //" | tail -1

I don't understand why that can't just be

  dscl . -read /Users/$USER RealName |sed 's/RealName: //'

?

Or an alternative approach:

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

Robin



More information about the textmate mailing list