From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from apollo.le.ac.uk ([143.210.16.125]) by hawkwind.utcs.toronto.edu with SMTP id <9748>; Fri, 5 Apr 2002 04:33:27 -0500 Received: from happy.star.le.ac.uk ([143.210.36.58]) by apollo.le.ac.uk with smtp (Exim 3.16 #1) id 16tPBr-0006Uc-00 for rc@hawkwind.utcs.toronto.edu; Fri, 05 Apr 2002 09:35:23 +0100 Received: (qmail 26830 invoked from network); 5 Apr 2002 08:35:44 -0000 Received: from fozzie.star.le.ac.uk (143.210.36.216) by happy.star.le.ac.uk with QMQP; 5 Apr 2002 08:35:44 -0000 Date: Fri, 5 Apr 2002 03:35:44 -0500 Message-ID: <20020405083544.19565.qmail@happy.star.le.ac.uk> From: Tim Goodwin To: rc@hawkwind.utcs.toronto.edu In-reply-to: <200204042154.g34LsCA02397@rakitzis.com> (byron@rakitzis.com) Subject: Re: rc 1.6 $version References: <200204042154.g34LsCA02397@rakitzis.com> > I would have thought you'd want to export $prompt. It's exported if it's changed from the default. The motivation for doing so was this little snippet: $ env - rc ; printenv PATH=/usr/local/bin:/usr/bin:/bin:. prompt=; ^A No point in cluttering the environment with a value that any descendant rc process would default to anyway. And since I'd just invented the mechanism to export $version only if it's assigned to (all 3 lines of code of it!), I thought I'd use it. So in the dev version, we get this. $ env - rc ; printenv PATH=/usr/local/bin:/usr/bin:/bin:. ; prompt=('rc$ ' '') rc$ printenv PATH=/usr/local/bin:/usr/bin:/bin:. prompt=rc$ ^A (And even PATH goes away if you build with `--disable-def-path'.) Tim.