How does one learn arg0 in csh

Roger Rohrbach roger at wrs.com
Tue Dec 4 09:13:10 AEST 1990


ruck at 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 at wrs.com
- Eddie sez: ----------------------------------------------- (c) 1986, 1990 -.
|   {o >o                                                                     |
|    \ -) "Two men need one money, but one money needs no man."               |



More information about the Comp.unix.shell mailing list