[TxMt] TM_USERNAME is null on Leopard

Robin Houston robin.houston at gmail.com
Thu Nov 29 16:58:46 UTC 2007


Are you sure? There isn't one on my computer; though I'm still running
10.4, so it could be different.

(You noticed that I added a space after the colon in the regular expression?)

Robin

On 29/11/2007, Kai Janson <kaijanson at thejeeper.net> wrote:
> There is a leading whitespace
>
> On Nov 29, 2007, at 8:14 AM, Robin Houston wrote:
>
> > 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
> >
> > ______________________________________________________________________
> > 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
>
>
> ______________________________________________________________________
> 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