Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[9fans] Examples of rc scripts

5 views
Skip to first unread message

Maurí­cio CA

unread,
Nov 20, 2009, 5:27:53 AM11/20/09
to
Hi, all,

I found 'werc' in a wikipedia link, and used it
as a source for examples of how to use rc. Are there
other places where I can found rc scripts, as well
as other scripts for plan9 tools?

(By the way, do you know how can I attribute a
here document to a variable?)

Thanks,
Maur�cio


erik quanstrom

unread,
Nov 20, 2009, 9:32:58 AM11/20/09
to
On Fri Nov 20 05:26:26 EST 2009, mauricio...@gmail.com wrote:
> Hi, all,
>
> I found 'werc' in a wikipedia link, and used it
> as a source for examples of how to use rc. Are there
> other places where I can found rc scripts, as well
> as other scripts for plan9 tools?

here are the scripts from the plan 9 distribution.
http://sources.coraid.com/sources/plan9/rc
and plan 9 ports
http://code.swtch.com/plan9port/src/tip/bin/

> (By the way, do you know how can I attribute a
> here document to a variable?)

minooka; x=`{cat <<h}
1
2
3
h

since here docs are redirection, quoting is probablly
easier to use. also if you're assigning a variable to
the here doc, you're missing the one advantage they
have: reduced memory usage.

- erik

Steve Simon

unread,
Nov 21, 2009, 11:27:03 AM11/21/09
to
There was a mailing list for the unix re-implementation
of rc by Byron Rakitzis, this includes many examples
and general info.

Be careful however, there are a few significant syntatic
differenctes between Byron's RC and Plan9's one, I am fairly
sure these are detailed in an appendix at the end of Byron's
paper (in the source package).

info here.

http://plan9.aichi-u.ac.jp/netlib/9fans/

http://rc-shell.slackmatic.org/

-Steve

erik quanstrom

unread,
Nov 21, 2009, 11:49:54 AM11/21/09
to

wow. big miscommunication here. when the original
site went down and i couldn't contact any of my list
of usual byron-rc suspects, i redid freshmeat's listing
to point to something active. this stuff should all
be in one place. i'm happy to do the web page as well,
or to give the freshmeat listing to someone else.

- erik
,

matt

unread,
Nov 23, 2009, 7:38:53 AM11/23/09
to
Maur�cio CA wrote:

for werc specific rc scripting my project is
http://code.google.com/p/scrappydog/
sadly the running code is down atm as the machine died.

some other examples of mine

http://plan9.bell-labs.com./sources/contrib/maht/rc/

though I'm sure there are better examples in the other contrib dirs

http://plan9.bell-labs.com./sources/contrib/


0 new messages