[Debian-eeepc-devel] Changes for eeepc-acpi-scripts
Miek Gieben
miek at miek.nl
Thu Jun 12 12:19:48 UTC 2008
[ Quoting Nico Golde in "Re: [Debian-eeepc-devel] Changes fo"... ]
> The same applies for getent ;) I don't see the need for this
> "optimization" here. Besides that both, the shell and getent
> use the same syscalls to get the result ;)
So you consider this
user=$(who | sed -n '/ (:0[\.0]*)$\| :0 /{s/ .*//p;q}')
home=$(getent passwd $user | cut -d: -f6)
XAUTHORITY=$home/.Xauthority
to be of the same quality as this
user=$(who | sed -n '/ (:0[\.0]*)$\| :0 /{s/ .*//p;q}')
XAUTHORITY=~$user/.Xauthority
I'm sorry, but I have to disagree.
--
grtz,
- Miek
GPG Key ID: 3880 D0F6 http://www.miek.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/debian-eeepc-devel/attachments/20080612/8d82dc35/attachment.pgp
More information about the Debian-eeepc-devel
mailing list