Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!ucsd!ames!amdahl!rtech!wrs!roger From: roger@wrs.com (Roger Rohrbach) Newsgroups: comp.unix.shell Subject: Re: How does one learn arg0 in csh Message-ID: <1328@wrs.wrs.com> Date: 3 Dec 90 22:13:10 GMT References: <25611@uflorida.cis.ufl.EDU> Sender: newsmgr@wrs.COM Lines: 16 Nntp-Posting-Host: time ruck@reef.cis.ufl.edu (John Ruckstuhl) writes: > I'd like to test if a csh is a login shell in ~/.cshrc. (This is really what your "Subject:" line should be.) In an interactive C shell, the "prompt" variable will be set. This can be tested with if ($?prompt) then ... endif -- Roger Rohrbach sun!wrs!roger roger@wrs.com - Eddie sez: ----------------------------------------------- (c) 1986, 1990 -. | {o >o | | \ -) "Two men need one money, but one money needs no man." |