From owner-freebsd-current Thu Jun 29 14:17:53 2000 Delivered-To: freebsd-current@freebsd.org Received: from mail.rdc1.sfba.home.com (ha1.rdc1.sfba.home.com [24.0.0.66]) by hub.freebsd.org (Postfix) with ESMTP id 562DB37C101 for ; Thu, 29 Jun 2000 14:17:43 -0700 (PDT) (envelope-from boshea@ricochet.net) Received: from beastie.localdomain ([24.19.158.41]) by mail.rdc1.sfba.home.com (InterMail vM.4.01.03.00 201-229-121) with ESMTP id <20000629211741.GOU28505.mail.rdc1.sfba.home.com@beastie.localdomain>; Thu, 29 Jun 2000 14:17:41 -0700 Received: (from brian@localhost) by beastie.localdomain (8.9.3/8.8.7) id OAA30079; Thu, 29 Jun 2000 14:28:26 -0700 (PDT) (envelope-from brian) Date: Thu, 29 Jun 2000 14:28:26 -0700 From: "Brian O'Shea" To: R Joseph Wright Cc: Doug Barton , freebsd-current@FreeBSD.ORG Subject: Re: roots shell == /bin/sh please Message-ID: <20000629142826.U15683@beastie.localdomain> Reply-To: boshea@ricochet.net Mail-Followup-To: R Joseph Wright , Doug Barton , freebsd-current@FreeBSD.ORG References: <200006291744.KAA55295@fallkiss.wraith.sf.ca.us> <20000629131139.B13520@manatee.mammalia.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <20000629131139.B13520@manatee.mammalia.org>; from R Joseph Wright on Thu, Jun 29, 2000 at 01:11:39PM -0700 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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