9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Jonathan Sergent <sergent@IO.COM>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] string to list?
Date: Sun, 10 Jun 2001 15:36:21 -0700	[thread overview]
Message-ID: <20010610223622.9CA12199C0@mail.cse.psu.edu> (raw)

[-- Attachment #1: Type: text/plain, Size: 172 bytes --]

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))?


[-- Attachment #2: Type: message/rfc822, Size: 2337 bytes --]

From: "Matt" <matt@proweb.co.uk>
To: <9fans@cse.psu.edu>
Subject: Re: [9fans] string to list?
Date: Sun, 10 Jun 2001 22:48:51 +0100
Message-ID: <002501c0f1f7$235fa220$6401a8c0@freeze2k>


----- Original Message -----
From: "Scott Schwartz" <schwartz@bio.cse.psu.edu>


> | 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







             reply	other threads:[~2001-06-10 22:36 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-10 22:36 Jonathan Sergent [this message]
2001-06-11  0:15 ` Matt
2001-06-11 10:18 ` Laura Creighton
2001-06-11 10:38   ` Matt
  -- strict thread matches above, loose matches on Subject: below --
2001-06-11  1:45 presotto
2001-06-10 23:22 presotto
2001-06-10 23:35 ` Scott Schwartz
     [not found] <vikki@proweb.co.uk>
2001-06-10 17:32 ` vikki
2001-06-10 17:47   ` Boyd Roberts
2001-06-10 17:55   ` Boyd Roberts
2001-06-10 18:03   ` Scott Schwartz
2001-06-10 21:48     ` Matt
2001-06-10 22:24       ` Scott Schwartz
2001-06-10 22:30         ` Boyd Roberts
2001-06-10 11:14 Matt
2001-06-10 14:46 ` Boyd Roberts
2001-06-10 21:01   ` Matt
2001-06-10 21:09     ` Boyd Roberts
2001-06-10 15:20 ` andrey mirtchovski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010610223622.9CA12199C0@mail.cse.psu.edu \
    --to=sergent@io.com \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).