Re: [9fans] anchors broken in the g command in sam on p9p?

2013-08-22 Thread Rudolf Sykora
On 21 August 2013 19:19, smi...@icebubble.org wrote: Rob Pike robp...@gmail.com writes: OK. How does one match the start/end of dot in a g// or v// regexp? ... seems like a good question to me Steve Simon in his Sam command reference card also uses ^ and $ for his TODAY example, so this

Re: [9fans] anchors broken in the g command in sam on p9p?

2013-08-22 Thread Rob Pike
Short answer: you can't. It would be nice though. -rob On 22/08/2013, at 4:24 PM, Rudolf Sykora rudolf.syk...@gmail.com wrote: On 21 August 2013 19:19, smi...@icebubble.org wrote: Rob Pike robp...@gmail.com writes: OK. How does one match the start/end of dot in a g// or v//

Re: [9fans] comparisons with NaN

2013-08-22 Thread Richard Miller
it would be reasonable to try to follow the standard, unless it's stupid, ill-advised, or impossible (or all three). Not impossible, maybe a bit tricky to stop the linkers from reordering things. The cost would be (at least) one extra instruction for each 'if' statement with a floating point

Re: [9fans] comparisons with NaN

2013-08-22 Thread Charles Forsyth
it would be reasonable to try to follow the standard, unless it's stupid, ill-advised, or impossible (or all three). I was a little ambiguous. I meant that statement in general, but I in the particular case of floating-point, being fundamental, probably should work as now defined, and I

Re: [9fans] more on why vc can't produce amd64 executables

2013-08-22 Thread Bakul Shah
On Wed, 21 Aug 2013 17:44:03 EDT erik quanstrom quans...@quanstro.net wrote: i think a bug is setting inuxi8[i+4] = inuxi8[i] for 0=i4. mikro; diffy -c *.c diff -c /n/dump/2013/0821/sys/src/cmd/6l/obj.c obj.c /n/dump/2013/0821/sys/src/cmd/6l/obj.c:1455,1471 - obj.c:1455,1471 int i, c;

Re: [9fans] more on why vc can't produce amd64 executables

2013-08-22 Thread erik quanstrom
i think a bug is setting inuxi8[i+4] = inuxi8[i] for 0=i4. mikro; diffy -c *.c diff -c /n/dump/2013/0821/sys/src/cmd/6l/obj.c obj.c /n/dump/2013/0821/sys/src/cmd/6l/obj.c:1455,1471 - obj.c:1455,1471 int i, c; for(i=0; i4; i++) { - c = find1(0x04030201L, i+1);

Re: [9fans] anchors broken in the g command in sam on p9p?

2013-08-22 Thread smiley
Well, I finally figured it out: how to use sam for Real Life Work(TM)! It took me about 8 hours to figure out, but I finally managed to create my first practical sam script. I just kind of pulled a Buddha, you know, I will not move from this spot until I can program sam! ;) Far from being

[9fans] Plan9port file(1) fails to detect OS X binaries

2013-08-22 Thread Aram Hăvărneanu
P9p file(1) fails to recognise 64-bit Mach-O binaries (thus breaking things like src(1) and friends). I don't know if it ever worked right. : iridium:aram; uname -a Darwin iridium 12.4.0 Darwin Kernel Version 12.4.0: Wed May 1 17:57:12 PDT 2013; root:xnu-2050.24.15~1/RELEASE_X86_64 x86_64

Re: [9fans] Plan9port file(1) fails to detect OS X binaries

2013-08-22 Thread Anthony Sorace
FWIW, file on Plan 9 knows about these well enough to at least distinguish (386 | amd64 | 32-bit power) Mach-O executables. The plan9 and p9p versions have diverged more than I'd have expected, but it should be easy to import. Anthony