whoami?
Ed Hew
edhew at xenitec.on.ca
Sun Dec 30 19:09:38 AEST 1990
In article <18865 at rpp386.cactus.org> jfh at rpp386.cactus.org (John F Haugh II) writes:
>
>if ( `id | sed -e 's/^[^(]*(\([^)]*\)).*$/\1/'` == "root" ) then
> set prompt = "#"
>else
> set prompt = "%"
>endif
>--
>John F. Haugh II UUCP: ...!cs.utexas.edu!rpp386!jfh
>Ma Bell: (512) 832-8832 Domain: jfh at rpp386.cactus.org
Unless I'm missing something, why not simply
if ( `logname` == "root" ) then
....and so on?
--
Ed. A. Hew <edhew at xenitec.on.ca>, XeniTec Consulting Services
or if you're really stuck: ..!{watmath|lsuc}!xenitec!eah
More information about the Comp.unix.xenix.sco
mailing list