From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: text/plain; charset="koi8-r" From: "A.S. Kukhar" To: 9fans@cse.psu.edu Subject: Re: [9fans] Rc shell FAQ References: In-Reply-To: MIME-Version: 1.0 Message-Id: <03030421081400.00581@localhost.localdomain> Content-Transfer-Encoding: 8bit Date: Tue, 4 Mar 2003 22:42:02 -0500 Topicbox-Message-UUID: 790766ae-eacb-11e9-9e20-41e7f4b1d025 i just tried to rewrite existed faq (about Byron Rakitzis's rc) to fit only Plan 9 shell, so a few differences between this shells i missed (including returns). on days i will fix (or remove) the examples with returns and a few other bugs that were found by rog. thank you guys (andrey and rog) for your responses. p.s. now i don`t have working plan 9 system so checking all the examples is a problem task -kyxap > 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