Re: [9fans] snapshot fails to boot

2010-08-10 Thread David Hoskin
Hi Erik, I tried booting 9atom; it failed with the same error, then printed random garbage across the screen. I'll try poking around with it to see where it crashes once I have an install to build from on my other computer. If I take the 2008 bootloader, can it boot a modern kernel? Thanks, --

Re: [9fans] regexp metacharacter difficulty inside grap

2010-08-10 Thread Jeff Sickel
On Aug 10, 2010, at 10:52 AM, Russ Cox wrote: >>cat /sys/doc/docfonts $stem.ps >_$stem.ps > > addpsfonts $stem.ps >_$stem.ps > > should do a better job of identifying the necessary fonts. > /sys/doc/docfonts is just the ones used in /sys/doc. It may do a better job, but it sure makes m

[9fans] copy on reference on mp (copymode)

2010-08-10 Thread cinap_lenrek
just out of curiosity: why is copy-on-write changed to copy-on-reference when the machine is a multi processor system? (grep for copymode in the kernel source) -- cinap

Re: [9fans] regexp metacharacter difficulty inside grap

2010-08-10 Thread Russ Cox
>        cat /sys/doc/docfonts $stem.ps >_$stem.ps addpsfonts $stem.ps >_$stem.ps should do a better job of identifying the necessary fonts. /sys/doc/docfonts is just the ones used in /sys/doc. Russ

Re: [9fans] regexp metacharacter difficulty inside grap

2010-08-10 Thread erik quanstrom
> Now to find out why the fonts on Plan 9 create nice print outs but really > awkward text inside of PDF files. My theory is that gs is not stuffing all > of the fonts in as it should. > here are some mk rules that build a proper pdf that will view nicely on other systems: %.ps:DQ:%.ms

Re: [9fans] regexp metacharacter difficulty inside grap

2010-08-10 Thread Jeff Sickel
It's good to learn new things every day. Grap strips the ')' out, no need for all that funny sh {} business: if "$1" == "#" then { if "$2" == "(Yo" then { print sprintf("Yo was %f", yo) yo = $

Re: [9fans] regexp metacharacter difficulty inside grap

2010-08-10 Thread Rudolf Sykora
On 10 August 2010 15:10, Federico G. Benavento wrote: > this is probably related to the fact that grap(1) is an APE program, > and sh actually execs sh, not rc... see this line: >>rc: line 2: token ')': syntax error telling that rc is executed. As to why there is the syntax error, as I

Re: [9fans] regexp metacharacter difficulty inside grap

2010-08-10 Thread Federico G. Benavento
this is probably related to the fact that grap(1) is an APE program, and sh actually execs sh, not rc... On Tue, Aug 10, 2010 at 2:23 AM, Jeff Sickel wrote: > I've been trying to figure out this little one for a while now and figure I > could use a refresher course in regexp. > > There are quite

Re: [9fans] regexp metacharacter difficulty inside grap

2010-08-10 Thread Jeff Sickel
On Aug 10, 2010, at 6:45 AM, erik quanstrom wrote: > why don't you just preprocess the included > files. ugly, but probablly effective. pre-processing seems to be the way to go. Good there there's mk to help set up repeatable processes.

Re: [9fans] snapshot fails to boot

2010-08-10 Thread erik quanstrom
> It printed PBS1... , then dumped 2-3 pages of messages too quickly for > me to read. > > The message above the one I quoted was the same, except FLAGS=10206 instead. > > After this message, it tried to print another in the same format, but > all numbers were replaced with %u% . > > If I can fi

Re: [9fans] regexp metacharacter difficulty inside grap

2010-08-10 Thread erik quanstrom
> There are quite a few files that I'm trying to copy through grap that would > be really easy if I could take a line like: > > # (Yo 4.9534) > > and turn it into a value for x,y graphing. Unfortunately, I'm completely > blanking out on how to get that pesky ')' stripped out. I try the

Re: [9fans] regexp metacharacter difficulty inside grap

2010-08-10 Thread Rudolf Sykora
also, I am afraid that a call like this >                 yo = sh { echo $3 | sed 's/\)#//' } is not possible :(. Although you may call the shell and pass the command to it, I think you can't get anything easily back, as you want (like you propose by the assignement 'yo ='). I reckon there is no

Re: [9fans] regexp metacharacter difficulty inside grap

2010-08-10 Thread Rudolf Sykora
>                 yo = sh { echo $3 | sed 's/\)#//' } just thinking... there might be a differenc between the above and >        cpu% echo '4.9534)#' | sed 's/\)#//' thanks to the apostrophes... if you just write echo 4.95) which I think is what happens in the former case, you get the error... a

Re: [9fans] regexp metacharacter difficulty inside grap

2010-08-10 Thread Steve Simon
> if "$2" == "(Yo" then { > print sprintf("Yo was %f", yo) >yo = sh { echo $3 | sed 's/\)#//' } >print sprintf("Yo is %f", yo) > } Not sure I get the twists and turns of your shell, which one are you using as I assume the subtle details ar