From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <639d576798468c6711b622b253ae6108@mightycheese.com> To: 9fans@cse.psu.edu Subject: Re: [9fans] Rc shell FAQ From: "rob pike, esq." In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-ucgusuysqzapazxbswdbpbwslg" Date: Tue, 4 Mar 2003 09:52:48 -0800 Topicbox-Message-UUID: 78c0f714-eacb-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-ucgusuysqzapazxbswdbpbwslg Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit I don't think you're missing anything. It's rc that's missing something. I don't know why, but it doesn't have a return statement and it should. -rob --upas-ucgusuysqzapazxbswdbpbwslg Content-Type: message/rfc822 Content-Disposition: inline Return-Path: <9fans-admin@cse.psu.edu> Received: from killy.mspring.net ([207.69.231.40] verified) by mail.mightycheese.com (CommuniGate Pro SMTP 3.4.7) with ESMTP-TLS id 510554 for rob@mail.mightycheese.com; Mon, 03 Mar 2003 13:26:20 -0600 Received: from mail.cse.psu.edu (psuvax1.cse.psu.edu [130.203.4.6]) by killy.mspring.net (8.12.5/8.8.6) with ESMTP id h23JQIXg011355 for ; Mon, 3 Mar 2003 14:26:18 -0500 (EST) Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.4.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 5FF4B19AB0; Mon, 3 Mar 2003 14:26:06 -0500 (EST) Delivered-To: 9fans@cse.psu.edu Received: from fbsd.cpsc.ucalgary.ca (fbsd.cpsc.ucalgary.ca [136.159.7.68]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id E96AE19A94 for <9fans@cse.psu.edu>; Mon, 3 Mar 2003 14:25:34 -0500 (EST) Received: from fbsd.cpsc.ucalgary.ca (localhost.localdomain [127.0.0.1]) by fbsd.cpsc.ucalgary.ca (8.12.5/8.12.5) with ESMTP id h23JPtHB029391 for <9fans@cse.psu.edu>; Mon, 3 Mar 2003 12:25:55 -0700 Received: from localhost (mirtchov@localhost) by fbsd.cpsc.ucalgary.ca (8.12.5/8.12.5/Submit) with ESMTP id h23JPt1u029387 for <9fans@cse.psu.edu>; Mon, 3 Mar 2003 12:25:55 -0700 X-Authentication-Warning: fbsd.cpsc.ucalgary.ca: mirtchov owned process doing -bs From: andrey mirtchovski To: 9fans@cse.psu.edu Subject: Re: [9fans] Rc shell FAQ In-Reply-To: <03030118450300.00582@localhost.localdomain> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.11 Precedence: bulk Reply-To: 9fans@cse.psu.edu List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Mon, 3 Mar 2003 12:25:55 -0700 (MST) Is this UNIX-only? I tried to find whether it mentioned anything about regarding specifically the unix implementation of the Rc shell but couldn't... In Plan 9 the builtin 'return' does not exist (as it it mentioned in the rc paper in /sys/doc) so the following examples from the FAQ would not work: fn true { return 0 } fn false { return 1 } Pretty much every other example there uses 'return' at least once and wouldn't work on Plan 9... Unless I'm missing somerhing? andrey On Sat, 1 Mar 2003, A.S. Kukhar wrote: > you can get it from http://ask.km.ru/plan9/doc/rcfaq.html, > the document attempts to answer some frequently asked > questions about rc, the Plan 9 shell. FAQ based on ``rc > shell Frequently Asked Questions'' from Alan Watson (15 Dec > 1994). > > Please forward any comments, corrections, and suggestions > regarding this FAQ to plan9@kp.km.ua. > > -kyxap > --upas-ucgusuysqzapazxbswdbpbwslg--