On Thu, Jun 29, 2000 at 01:11:39PM -0700, R Joseph Wright wrote:
>
> Speaking of csh and tcsh, I noticed that /bin/csh is hard linked to
> /bin/tcsh, yet when I invoke tcsh, I get a different prompt than when
> I invoke csh. I find this rather odd.
When invoked as tcsh, the shell behaves like tcsh. This is a common
technique (check out ex, nex, nvi, nview, vi, and view, for examples;
all are hard links to the same file). The program checks its argv[0]
and behaves differently depending on what it is set to.
-brian
--
Brian O'Shea
[EMAIL PROTECTED]
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message