From owner-freebsd-questions Thu Sep 6 10:27:18 2001 Delivered-To: freebsd-questions@freebsd.org Received: from lila.inti.gov.ar (lila.inti.gov.ar [200.10.161.32]) by hub.freebsd.org (Postfix) with ESMTP id B477637B405 for ; Thu, 6 Sep 2001 10:27:11 -0700 (PDT) Received: from nav.inti.gov.ar ([200.10.161.45]) by lila.inti.gov.ar with smtp (Exim 3.02 #1) id 15f2vl-0005hc-00 for questions@freebsd.org; Thu, 06 Sep 2001 14:27:09 -0300 Received: from iib005.iib.unsam.edu.ar ([200.3.113.15]) by NAV.inti.gov.ar (NAVGW 2.5.1.12) with SMTP id M2001090614312602527 ; Thu, 06 Sep 2001 14:31:26 -0300 Received: (from fernan@localhost) by iib005.iib.unsam.edu.ar (8.11.3/8.11.3) id f86HR8O04105; Thu, 6 Sep 2001 14:27:08 -0300 (ART) (envelope-from fernan) Date: Thu, 6 Sep 2001 14:27:08 -0300 From: Fernan Aguero To: Dru Cc: questions@freebsd.org Subject: Re: .cshrc not being used? Message-ID: <20010906142707.E2088@iib005.iib.unsam.edu.ar> Mail-Followup-To: Dru , questions@freebsd.org References: <20010906122437.C2088@iib005.iib.unsam.edu.ar> <20010906113749.E28004-100000@x1-6-00-50-ba-de-36-33.kico1.on.home.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010906113749.E28004-100000@x1-6-00-50-ba-de-36-33.kico1.on.home.com>; from genisis@istar.ca on Thu, Sep 06, 2001 at 11:40:51AM -0400 X-PGP-Key: http://genoma.unsam.edu.ar/~fernan/pubkey.asc Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG +----[ Dru (genisis@istar.ca) dijo sobre "Re: .cshrc not being used?": | | | On Thu, 6 Sep 2001, Fernan Aguero wrote: | | > +----[ Dru (genisis@istar.ca) dijo sobre "Re: .cshrc not being used?": | > | Hi Fernan, | > | | > | Did you either logoff and back in or do a: | > | | > | source .cshrc | > | > Of course. Logging off and back in does nothing. However if i do a | > source .cshrc everything works OK. | > | > Should I create a new .rc file with my additions and then source it | > from .cshrc? | | Still strange that logging off does nothing but source works OK as both | methods should force the shell to reread the .cshrc file. Not sure what | you mean by a .rc file. Do you mean adding a file called dot.cshrc to | /usr/share/skel so all new users will get the new and improved .cshrc | file? | | Dru | +----] Nope. I mean adding a ~/.myrc file with my own entries, like: setenv MYVAR /whatever setenv OTHERVAR value set prompt = "me# " etc and then add the following line to ~/.cshrc source .myrc Anyway, it doesn't work since the .cshrc is not read in the first place. But, I must admit that when I said logging off and back in I was talking about doing it in xdm. All of this behaviour that I'm talking about is only seen in an xterm. If I go to the console then my .cshrc is read OK. In an xterm my .cshrc is ignored. Only if I do a source .cshrc in the xterm do i see a change. Reading xterm man page says that xterm -ls should be a login shell (i.e. it will read the user's .profile and .login files). I assume that it will also read .cshrc but it is not explicitly said. But it does not appear to be the case. Fernan [confused]. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message