Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!ucsd!sdcsvax!ucsdhub!hp-sdd!hplabs!hpcea!hpfcdc!rml From: rml@hpfcdc.HP.COM (Bob Lenk) Newsgroups: comp.unix.questions Subject: Re: Weird things in csh (and kernel?) Message-ID: <5740020@hpfcdc.HP.COM> Date: 2 Mar 88 23:51:57 GMT References: <1193@ark.cs.vu.nl> Organization: HP Ft. Collins, Co. Lines: 14 >Isn't it a BOURNE shell that is forked off, which won't execute ~/.cshrc? Based on experimentation, csh's test is something like: if I can read from the file and the first character is not # give it to sh else give it to csh Thus a zero-length file, as a degenerate case, is run by the csh. The only difference between csh and sh for a zero-length file is, of course, that .cshrc is sourced. Bob Lenk {ihnp4, hplabs}!hpfcla!rml