Subject: Re: total weirdness? "cd dist"
To: Andy Ruhl <acruhl@gmail.com>
From: Alex Pelts <alexp@broadcom.com>
List: port-mips
Date: 04/02/2007 17:33:55
I would carefully examine environment. Is dist aliased to something? it
appears that it is aliased to /usr/src/sys/dist. It also appears that it
is csh/tcsh related. Look what initialization files they use and grep in
all of them for dist.
Regards,
Alex
Andy Ruhl wrote:
> Can anyone explain this? This doesn't happen on my i386 box. Maybe I'm
> just dense and I'm missing something:
>
> root@taz:/root # ls
> .cshrc .klogin .profile
> dmesg.current.out
> .cshrc.good .login .shrc pkgpath
> .cvspass .lsof_taz .ssh
> root@taz:/root # cd dist
> /usr/src/sys/dist
> root@taz:/usr/src/sys/dist # pwd
> /usr/src/sys/dist
> root@taz:/usr/src/sys/dist # ls
> CVS acpica ipf pf
> root@taz:/usr/src/sys/dist #
>
> What the heck? This works from any directory. I just do "cd dist" as
> root, and there I go. I logged out and back in and it still works.
>
> Doesn't work with bash, but does work with tcsh and regular csh. I'm
> normally using tcsh. I noticed cd was aliased to something, so I
> commented that out and restarted the shell, but still the same
> results. Again, this doesn't happen on my i386 machine.
>
> Weird. But then again, it's entirely possible that I'm missing something.
>
> Andy
>