Weird things in csh (and kernel?)
Bob Lenk
rml at hpfcdc.HP.COM
Thu Mar 3 09:51:57 AEST 1988
>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
More information about the Comp.unix.questions
mailing list