Subject: illegal variable name error upon login
To: None <current-users@netbsd.org>
From: Zafer Aydogan <zafer@aydogan.de>
List: current-users
Date: 07/14/2007 22:51:42
Hello list,

I'm getting this error, but I don't know what causes it.
If I login (csh), the message "Illegal variable name" is printed.
Screenshot: http://aydogan.org/login/illegal_variable_name.png

I trussed it. The end looks like this:

 435      1 csh      ioctl(0x3, FIOCLEX, 0)      = 0
   435      1 csh      __fstat30(0x3, 0xbfbfecf4)  = 0
   435      1 csh      __sigprocmask14(0x1, 0xbfbfedbc, 0xbfbfedac) = 0
   435      1 csh      ioctl(0x3, TIOCGETA, 0xbfbfec70) Err#25 ENOTTY
   435      1 csh      __sigprocmask14(0x3, 0xbfbfedac, 0) = 0
   435      1 csh      lseek(0x3, 0, 0, 0, 0x1)    = 0
   435      1 csh      lseek(0x3, 0, 0, 0, 0x1)    = 0
   435      1 csh      __sigprocmask14(0, 0, 0x8068af8) = 0
   435      1 csh      __sigprocmask14(0, 0, 0x8068af8) = 0
   435      1 csh      __sigprocmask14(0x2, 0xbfbfec88, 0) = 0
   435      1 csh      read(0x3, 0xbfbfbb5b, 0x1000) = 974
       "#\t$NetBSD: dot.cshrc,v 1.16 2006/08/31 22:33:14 hubertf Exp $\n\nali"
   435      1 csh      __sigprocmask14(0x1, 0xbfbfec88, 0) = 0
   435      1 csh      __sigprocmask14(0, 0, 0x8068af8) = 0
   435      1 csh      __sigprocmask14(0, 0, 0x8068af8) = 0
   435      1 csh      __sigprocmask14(0x2, 0xbfbfec88, 0) = 0
   435      1 csh      __sigprocmask14(0x1, 0xbfbfec88, 0) = 0
   435      1 csh      __sigprocmask14(0, 0, 0x8068af8) = 0
   435      1 csh      __sigprocmask14(0, 0, 0x8068af8) = 0
   435      1 csh      __sigprocmask14(0x2, 0xbfbfec88, 0) = 0
   435      1 csh      __sigprocmask14(0x1, 0xbfbfec88, 0) = 0
   435      1 csh      __sigprocmask14(0, 0, 0x8068af8) = 0
   435      1 csh      close(0)                    Err#9 EBADF
   435      1 csh      dup(0x13)                   = 0
   435      1 csh      ioctl(0, FIONCLEX, 0)       = 0
   435      1 csh      close(0x1)                  Err#9 EBADF
   435      1 csh      dup(0x11)                   = 1
   435      1 csh      ioctl(0x1, FIONCLEX, 0)     = 0
   435      1 csh      close(0x2)                  Err#9 EBADF
   435      1 csh      dup(0x12)                   = 2
   435      1 csh      ioctl(0x2, FIONCLEX, 0)     = 0
   435      1 csh      close(0)                    = 0
   435      1 csh      close(0x1)                  = 0
   435      1 csh      close(0x2)                  = 0
   435      1 csh      __sigprocmask14(0, 0, 0x8068af8) = 0
   435      1 csh      __sigprocmask14(0x2, 0xbfbfec88, 0) = 0
   435      1 csh      __sigprocmask14(0x1, 0xbfbfec88, 0) = 0
   435      1 csh      __sigprocmask14(0, 0, 0x8068af8) = 0
   435      1 csh      close(0)                    Err#9 EBADF
   435      1 csh      dup(0x13)                   = 0
   435      1 csh      ioctl(0, FIONCLEX, 0)       = 0
   435      1 csh      close(0x1)                  Err#9 EBADF
   435      1 csh      dup(0x11)                   = 1
 435      1 csh      ioctl(0x1, FIONCLEX, 0)     = 0
   435      1 csh      close(0x2)                  Err#9 EBADF
   435      1 csh      dup(0x12)                   = 2
   435      1 csh      ioctl(0x2, FIONCLEX, 0)     = 0
   435      1 csh      close(0)                    = 0
   435      1 csh      close(0x1)                  = 0
   435      1 csh      close(0x2)                  = 0
   435      1 csh      __sigprocmask14(0, 0, 0x8068af8) = 0
   435      1 csh      __sigprocmask14(0x2, 0xbfbfec88, 0) = 0
   435      1 csh      __sigprocmask14(0x1, 0xbfbfec88, 0) = 0
   435      1 csh      __sigprocmask14(0, 0, 0x8068af8) = 0
   435      1 csh      close(0)                    Err#9 EBADF
   435      1 csh      dup(0x13)                   = 0
   435      1 csh      ioctl(0, FIONCLEX, 0)       = 0
   435      1 csh      close(0x1)                  Err#9 EBADF
   435      1 csh      dup(0x11)                   = 1
   435      1 csh      ioctl(0x1, FIONCLEX, 0)     = 0
   435      1 csh      close(0x2)                  Err#9 EBADF
   435      1 csh      dup(0x12)                   = 2
   435      1 csh      ioctl(0x2, FIONCLEX, 0)     = 0
   435      1 csh      close(0)                    = 0
   435      1 csh      close(0x1)                  = 0
   435      1 csh      close(0x2)                  = 0
   435      1 csh      __sigprocmask14(0, 0, 0x8068af8) = 0
   435      1 csh      __sigprocmask14(0x2, 0xbfbfec88, 0) = 0
   435      1 csh      __sigprocmask14(0x1, 0xbfbfec88, 0) = 0
   435      1 csh      write(0x12, 0x806e800, 0x17) = 23
       "Illegal variable name.\n"
   435      1 csh      lseek(0x3, 0, 0, 0, 0x2)    = 974
   435      1 csh      __sigprocmask14(0x3#

and in fact, if I remove .cshrc, the error is gone.
if I switch to /bin/sh or ksh, the error is gone aswell.

Any ideas ?

Zafer.