![](https://seccdn.libravatar.org/avatar/f67104496850bd7582029d629b375525.jpg?s=120&d=mm&r=g)
23 Jul
2000
23 Jul
'00
11:02
On Sun, 23 Jul 2000, David Haller wrote:
---[ schnipp ]--- #!/bin/bash if [ -z "$(id | grep uid=0)" ]; then # als root angemeldet ?
wennschon useless use of id, dann ... if [ "`id -u`" = "0" ]; then ...
Warum nicht (wie in /etc/profile beim setzen von $PS1):
if test "$UID" = 0 ; then
... was IMHO deutlich zu preferieren ist. Volker -- <ESC>:r .signature mailto:volker.mueller@gmx.de Hi I'm a UnixVirus. Please mail me to all people you know and delete some files on your disk at random.:wq --------------------------------------------------------------------- To unsubscribe, e-mail: suse-linux-unsubscribe@suse.com For additional commands, e-mail: suse-linux-help@suse.com