Subject: tcsh if works for user, not for root
To: None <netbsd-users@netbsd.org>
From: Sam Carleton <sam@linux-info.net>
List: netbsd-users
Date: 09/11/2002 23:17:45
Folks,

I have added this commend to my .cshrc and it works fine:

if( -fx /usr/pkg/bin/vim ) then
    alias vi vim
    setenv  EDITOR  vim
else
    setenv  EDITOR  vi
endif

I have added it to root's .cshrc.  When I use su to become root with 
this commend "sudo su - root -c tcsh", I get this error:

if: Malformed file inquiry.

Any thoughts?

Sam