[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bugs #10533] Change from "whoami" to "id -u" breaks "updatedb" on S

From: James Youngman
Subject: Re: [bugs #10533] Change from "whoami" to "id -u" breaks "updatedb" on Solaris
Date: Sat, 2 Oct 2004 11:57:42 +0100
User-agent: Mutt/1.3.28i

In 2003, this problem was fixed in CVS.  The fix is :-

getuid() {
    # format of "id" output is ...
    # uid=1(daemon) gid=1(other)
    # for `id's that don't understand -u
    id | cut -d'(' -f 1 | cut -d'=' -f2

reply via email to

[Prev in Thread] Current Thread [Next in Thread]