Two vi questions.
Rahul Dhesi
dhesi at sun505.UUCP
Fri Sep 22 11:11:26 AEST 1989
In article <20884 at adm.BRL.MIL> rbj at dsys.ncsl.nist.gov (Root Boy Jim) writes:
> <stuff you always want to do>
> if ($?prompt == 0) exit
> <interactive stuff>
I had csh scripts like this; they broke after an OS upgrade from 4.3BSD
to Mt Xinu's More/BSD. I think the longer form
if ($?prompt) then
...
endif
will be more portable.
My guess is that when it sees "exit", csh can't decide whether to exit
just the script being source'd or to exit itself entirely.
--
Rahul Dhesi <dhesi%cirrusl at oliveb.ATC.olivetti.com>
UUCP: oliveb!cirrusl!dhesi
More information about the Comp.unix.questions
mailing list