Re: [9fans] Bug in print(2) g verb

2013-03-03 Thread erik quanstrom
On Fri Mar 1 17:54:53 EST 2013, paul-a.patie...@polymtl.ca wrote: > Plan9port's implementation of fltfmt.c seems > different enough to me that it isn't possible to > simply take the fix from there and add it to > plan9. Perhaps I'm missing something. > > The g verb already acts differently in pla

Re: [9fans] Bug in print(2) g verb

2013-03-03 Thread Paul A. Patience
I would also like it if %g acted the same in plan9 as everywhere else (printing 0.1 instead of .1 in my example). That's also really easy to change. It doesn't make sense for plan9port's %g to be different from plan9, because now you cannot even count on both prints to work the same way. Since pri

Re: [9fans] Bug in print(2) g verb

2013-03-03 Thread erik quanstrom
On Sun Mar 3 12:57:49 EST 2013, paul-a.patie...@polymtl.ca wrote: > I would also like it if %g acted the same in plan9 > as everywhere else (printing 0.1 instead of .1 in > my example). That's also really easy to change. > > It doesn't make sense for plan9port's %g to be > different from plan9, b

Re: [9fans] Bug in print(2) g verb

2013-03-03 Thread Paul A. Patience
I would also like it if %g acted the same in plan9 as everywhere else (printing 0.1 instead of .1 in my example). That's also really easy to change. It doesn't make sense for plan9port's %g to be different from plan9, because now you cannot even count on both prints to work the same way. Since pri

[9fans] doing a native awk port (was Re: Bug in print(2) g verb)

2013-03-03 Thread arnold
Changing the subject here... "Paul A. Patience" wrote: > > for the native port of awk I am completing > (started by boyd). I was under the impression that awk was a native port, but I could be wrong. In any case, I recommend that you start with BWK's latest, which is availble on github:

Re: [9fans] doing a native awk port (was Re: Bug in print(2) g verb)

2013-03-03 Thread Paul A. Patience
I am actually the one who asked bwk for his test suite, which he later put on github. I started with some gawk tests while waiting for the test suite, however. As for plan9's awk, it runs on ape. I am trying to make it run without ape. I had thought of starting with the latest version of awk, but

Re: [9fans] doing a native awk port (was Re: Bug in print(2) g verb)

2013-03-03 Thread erik quanstrom
On Sun Mar 3 13:55:37 EST 2013, arn...@skeeve.com wrote: > Changing the subject here... > > "Paul A. Patience" wrote: > > > > > for the native port of awk I am completing > > (started by boyd). > > I was under the impression that awk was a native port, but I could > be wrong. > > In any

Re: [9fans] doing a native awk port (was Re: Bug in print(2) g verb)

2013-03-03 Thread erik quanstrom
> As for plan9's awk, it runs on ape. I am trying > to make it run without ape. I had thought of don't. it's not worth it. - erik

Re: [9fans] doing a native awk port (was Re: Bug in print(2) g verb)

2013-03-03 Thread Kurt H Maier
On Sun, Mar 03, 2013 at 02:08:20PM -0500, erik quanstrom wrote: > > As for plan9's awk, it runs on ape. I am trying > > to make it run without ape. I had thought of > > don't. it's not worth it. > > - erik > [citation needed]

Re: [9fans] doing a native awk port (was Re: Bug in print(2) g verb)

2013-03-03 Thread erik quanstrom
On Sun Mar 3 14:12:19 EST 2013, kh...@intma.in wrote: > On Sun, Mar 03, 2013 at 02:08:20PM -0500, erik quanstrom wrote: > > > As for plan9's awk, it runs on ape. I am trying > > > to make it run without ape. I had thought of > > > > don't. it's not worth it. > > > > - erik > > > > [citation n

Re: [9fans] doing a native awk port (was Re: Bug in print(2) g verb)

2013-03-03 Thread Kurt H Maier
On Sun, Mar 03, 2013 at 02:18:11PM -0500, erik quanstrom wrote: > awk is designed for a posix environment. bullshit. was ls also designed for a posix environment? awk is at least ten years older than posix.

Re: [9fans] doing a native awk port (was Re: Bug in print(2) g verb)

2013-03-03 Thread erik quanstrom
On Sun Mar 3 14:29:15 EST 2013, kh...@intma.in wrote: > On Sun, Mar 03, 2013 at 02:18:11PM -0500, erik quanstrom wrote: > > awk is designed for a posix environment. > > bullshit. was ls also designed for a posix environment? awk is at > least ten years older than posix. should i say "the curre

Re: [9fans] doing a native awk port (was Re: Bug in print(2) g verb)

2013-03-03 Thread Kurt H Maier
On Sun, Mar 03, 2013 at 02:31:07PM -0500, erik quanstrom wrote: > On Sun Mar 3 14:29:15 EST 2013, kh...@intma.in wrote: > > On Sun, Mar 03, 2013 at 02:18:11PM -0500, erik quanstrom wrote: > > > awk is designed for a posix environment. > > > > bullshit. was ls also designed for a posix environmen

Re: [9fans] doing a native awk port (was Re: Bug in print(2) g verb)

2013-03-03 Thread Richard Miller
>> And also talk to Erik who did some work on bringing the Plan 9 awk into >> sync with BWK's a little while back. >... > if there is any > interest, i would be happy to submit it. Here's one vote in favour.

Re: [9fans] doing a native awk port (was Re: Bug in print(2) g verb)

2013-03-03 Thread erik quanstrom
On Sun Mar 3 16:30:37 EST 2013, 9f...@hamnavoe.com wrote: > >> And also talk to Erik who did some work on bringing the Plan 9 awk into > >> sync with BWK's a little while back. > >... > > if there is any > > interest, i would be happy to submit it. > > Here's one vote in favour. good enough! /n

Re: [9fans] Bug in print(2) g verb

2013-03-03 Thread Richard Miller
> /sys/src/cmd/hoc/code.c:586: print("%.12g\n", d.val); Conceivably changing this could break somebody's rc script which depends on hoc leaving out the leading zero. But unlikely (one hopes) that someone with the taste to use Plan 9 would write anything so fragile... I vote we converge with pla

Re: [9fans] Bug in print(2) g verb

2013-03-03 Thread erik quanstrom
> Conceivably changing this could break somebody's rc script which depends on > hoc leaving out the leading zero. But unlikely (one hopes) that someone with > the taste to use Plan 9 would write anything so fragile... looks like /rc/bin is safe, but ironicly, uptime(1) hacks around the current be

Re: [9fans] doing a native awk port (was Re: Bug in print(2) g verb)

2013-03-03 Thread Dan Cross
On Sun, Mar 3, 2013 at 2:31 PM, erik quanstrom wrote: > should i say "the current ot awk source"? it's certainly not > designed for plan 9. > Regardless you are right that it is clearly not worth porting to 'native' Plan 9 libraries or APIs; what, if anything, would be the benefit of such an ef

[9fans] native awk

2013-03-03 Thread Steve Simon
My 2ยข on the subject of native awk. The only "native" features I have wanted are: utf-8 clean - honestly I don't know if it is alreay but my suspicion is that it is not. an input parsing mode which respects rc tokenizing rules, this would make things like du -a | a

Re: [9fans] doing a native awk port (was Re: Bug in print(2) g verb)

2013-03-03 Thread Kurt H Maier
On Sun, Mar 03, 2013 at 07:10:09PM -0500, Dan Cross wrote: > On Sun, Mar 3, 2013 at 2:31 PM, erik quanstrom wrote: > > > should i say "the current ot awk source"? it's certainly not > > designed for plan 9. > > > > Regardless you are right that it is clearly not worth porting to 'native' > Plan

Re: [9fans] native awk

2013-03-03 Thread erik quanstrom
> utf-8 clean - honestly I don't know if it is > alreay but my suspicion is that it is not. already done. > an input parsing mode which respects rc tokenizing rules, > this would make things like du -a | awk more reliable in the > face of weird filenames. can't this