Re: [dev] fast-booting to text editor

From: Gregor Best <>
Date: Mon, 21 Mar 2011 17:25:05 +0100

On Mon, Mar 21, 2011 at 01:08:44AM +0100, wrote:
> Please don't use [ $USER = root ]. This is very unclean because the UID-0 user
> isn't always called root. Use id -u instead and spread the word. I hate it when
> things break because of this.

Seeing that the rest of the script is tailored to be used in a Linux
environment (and one very specific at that), I don't see the point in
using UID 0 instead of the symbolic name. Also, besides BeOS/Haiku, I
don't really remember an OS with a similar scheme of UID/GID and the
user with ID 0 not being root. Could you give an example of where it
craps up?

    $l="\n";$p=q-sub r{rand}sub c{((shift)**2+(shift)**2)<1}while(
    $i++<=$s){$t++if c r,r}die("Gregor Best, 0xDB9F9A7C, ".($t/$s*
    4).$l)-;$s+=ord$$|$_ for split //,$p;srand($s|$$);eval$p;die$@

Received on Mon Mar 21 2011 - 17:25:05 CET

This archive was generated by hypermail 2.2.0 : Mon Mar 21 2011 - 17:36:02 CET