Don't don't don't assume /usr/bin/id is always present. Loses in single user.

This commit is contained in:
abs 1999-06-15 05:44:22 +00:00
parent 56351da429
commit f85ff94580
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: dot.cshrc,v 1.9 1998/01/10 00:51:56 perry Exp $
# $NetBSD: dot.cshrc,v 1.10 1999/06/15 05:44:22 abs Exp $
set history=1000
set path=(/sbin /usr/sbin /bin /usr/bin /usr/pkg/sbin /usr/pkg/bin /usr/X11R6/bin /usr/local/sbin /usr/local/bin)
@ -24,7 +24,7 @@ alias pd3 pushd +3
alias pd4 pushd +4
alias tset 'set noglob histchars=""; eval `\tset -s \!*`; unset noglob histchars'
if ($?prompt) then
if ($?prompt && -x /usr/bin/id ) then
if (`/usr/bin/id -u` == 0) then
set prompt="`hostname -s`# "
else