From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from tele-post-20.mail.demon.net ([194.217.242.20]) by hawkwind.utcs.utoronto.ca with SMTP id <25219>; Sat, 24 Jul 1999 03:01:24 -0400 Received: from mftsun1.demon.co.uk ([158.152.19.44] helo=gandalf.mft.co.uk) by tele-post-20.mail.demon.net with esmtp (Exim 2.12 #2) id 117FvK-000FIC-0K for rc@hawkwind.utcs.utoronto.ca; Thu, 22 Jul 1999 10:17:59 +0000 Received: from mftsun1.mft.co.uk by gandalf.mft.co.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.0.1458.49) id PHSDBG7S; Thu, 22 Jul 1999 11:15:52 +0100 Received: from mft.co.uk by mft.co.uk (8.8.8+Sun/SMI-SVR4) id LAA02836; Thu, 22 Jul 1999 11:18:20 +0100 (BST) Sender: mhw@mftsun1 Message-ID: <3796EFFD.E55E11CD@mft.co.uk> Date: Thu, 22 Jul 1999 06:18:37 -0400 From: "Mark H. Wilkinson" Reply-To: "Mark H. Wilkinson" Organization: MFT Computer Systems Limited X-Mailer: Mozilla 4.5 [en] (X11; I; SunOS 5.6 sun4u) X-Accept-Language: pt,en MIME-Version: 1.0 To: rc@hawkwind.utcs.utoronto.ca Subject: "dot" doesn't search path Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by mft.co.uk id LAA02836 the rc paper says . [-i] file ... file. $* is set for the duration to the reminder of the argument list following file. $path is used to search for file. Option -i indicates interactive input =AD a prompt (found in $prompt) is printed before each command is read. the Unix man page says . [-i] file [arg ...] Reads file as input to rc and executes its contents. With a -i flag, input is interactive. Thus from within a shell script, . -i /dev/tty does the ``right'' thing. note that $path isn't searched in the Unix rc. is this just an oversight? I'd certainly find it useful if it did search $path. ". /usr/local/bin/rcoraenv" is a bit of a handful. -Mark.