From mboxrd@z Thu Jan 1 00:00:00 1970 From: presotto@plan9.bell-labs.com To: 9fans@cse.psu.edu Subject: Re: [9fans] string to list? MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-zdajvtwewmznaotxkziyzvpisa" Message-Id: <20010610232255.B3019199C0@mail.cse.psu.edu> Date: Sun, 10 Jun 2001 19:22:54 -0400 Topicbox-Message-UUID: b348f4e2-eac9-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-zdajvtwewmznaotxkziyzvpisa Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit You can turn off access to all '#' devices except #{|decp}. Look at RFNOMNT on rfork. I believe 'rfork m' in rc does an rfork(RFNOMNT). --upas-zdajvtwewmznaotxkziyzvpisa Content-Type: message/rfc822 Content-Disposition: inline Received: from plan9.cs.bell-labs.com ([135.104.9.2]) by plan9; Sun Jun 10 18:37:23 EDT 2001 Received: from mail.cse.psu.edu ([130.203.4.6]) by plan9; Sun Jun 10 18:37:22 EDT 2001 Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.8.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 49711199FA; Sun, 10 Jun 2001 18:37:09 -0400 (EDT) Received: from ETLA.NET (c61066-a.frmt1.sfba.home.com [24.1.50.197]) by mail.cse.psu.edu (CSE Mail Server) with SMTP id 9CA12199C0 for <9fans@cse.psu.edu>; Sun, 10 Jun 2001 18:36:22 -0400 (EDT) To: 9fans@cse.psu.edu Subject: Re: [9fans] string to list? From: Jonathan Sergent MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-chhdyqwwoesjgzgoainaafsdgo" Message-Id: <20010610223622.9CA12199C0@mail.cse.psu.edu> Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.1 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: Sun, 10 Jun 2001 15:36:21 -0700 This is a multi-part message in MIME format. --upas-chhdyqwwoesjgzgoainaafsdgo Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Doesn't the availability of '#s' (i.e. '#s'/boot) break this (unless you are in group noworld)? What's wrong with words=(`{echo $line}) and then switch($words(1))? --upas-chhdyqwwoesjgzgoainaafsdgo Content-Type: message/rfc822 Content-Disposition: inline Received: from mail.cse.psu.edu ([130.203.4.6]) by ETLA.NET; Sun Jun 10 14:50:12 PDT 2001 Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.8.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 7AA5D199E7; Sun, 10 Jun 2001 17:50:09 -0400 (EDT) Received: from mta06-svc.ntlworld.com (mta06-svc.ntlworld.com [62.253.162.46]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id DF54F199C0 for <9fans@cse.psu.edu>; Sun, 10 Jun 2001 17:49:35 -0400 (EDT) Received: from freeze2k ([62.254.2.198]) by mta06-svc.ntlworld.com (InterMail vM.4.01.02.27 201-229-119-110) with SMTP id <20010610214935.DVRH285.mta06-svc.ntlworld.com@freeze2k> for <9fans@cse.psu.edu>; Sun, 10 Jun 2001 22:49:35 +0100 Message-ID: <002501c0f1f7$235fa220$6401a8c0@freeze2k> From: "Matt" To: <9fans@cse.psu.edu> References: <20010610180320.15361.qmail@g.bio.cse.psu.edu> Subject: Re: [9fans] string to list? MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.1 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: Sun, 10 Jun 2001 22:48:51 +0100 ----- Original Message ----- From: "Scott Schwartz" > | I plan to have it do eval `{$msg} and do whatever it's > | namespace will let it. > > I really wouldn't do that. It's just too unpredictable and dangerous. > eval considered harmful. being as I've not implemented it my understanding is weak but I thought that I could dictate the namespace that a process sees. If the total namespace the ircbot process sees is / /bin/opme /bin/cat /bin/ls /bin/eval /bin/echo /slashdotheadlines then all ircbot can do is combinations like echo eval 'ls /bin' echo eval 'opme' echo eval 'cat /slashdotheadlines' but because it can't bind new files in or import them it can't manipulate it's namespace via the eval --upas-chhdyqwwoesjgzgoainaafsdgo-- --upas-zdajvtwewmznaotxkziyzvpisa--