Date: Thu, 29 Jun 2000 14:28:26 -0700 From: "Brian O'Shea" <boshea@ricochet.net> To: R Joseph Wright <rjoseph@manatee.mammalia.org> Cc: Doug Barton <Doug@gorean.org>, freebsd-current@FreeBSD.ORG Subject: Re: roots shell == /bin/sh please Message-ID: <20000629142826.U15683@beastie.localdomain> In-Reply-To: <20000629131139.B13520@manatee.mammalia.org>; from R Joseph Wright on Thu, Jun 29, 2000 at 01:11:39PM -0700 References: <200006291744.KAA55295@fallkiss.wraith.sf.ca.us> <Pine.BSF.4.21.0006291239020.9243-100000@dt052n3e.san.rr.com> <20000629131139.B13520@manatee.mammalia.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 boshea@ricochet.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000629142826.U15683>