Re: [9fans] a bit OT, programming style question

2009-04-17 Thread Balwinder S Dheeman
On 04/10/2009 05:08 AM, Eris Discordia wrote: this is the space-shuttle dichotomy. it's a false one. it's a continuum. its ends are dangerous. So somewhere in the middle is the golden mean? I have no objections to that. *BSD systems very well represent a silver, if not a golden,

Re: [9fans] a bit OT, programming style question

2009-04-17 Thread erik quanstrom
i know of many thousands of plan 9 systems in production right now. Erik, you might want to know how many *million* people use Linux ;) Won't you? the criticisim of plan 9 that i was respnding to was that plan 9 was not used for anything serious or capable of being used in production. i

Re: [9fans] a bit OT, programming style question

2009-04-17 Thread Devon H. O'Dell
Wait, am I on the wrong mailing list? Since when was this Fans of BSD and Linux Talk about why Plan 9 Sucks Donkey Shit? (I use FreeBSD and Linux. OTOH, I'm not on freebsd-general@ and centos mailing lists talking about how our private namespaces and 9p are so much shinier than VFS)

Re: [9fans] a bit OT, programming style question

2009-04-11 Thread Eris Discordia
No, bash's completion system is what's responsible for line numbers in the thousands. How? Is bash's completion on your system different than on my system? I'd like you to substantiate that statement and will thank you for a proper response. --On Friday, April 10, 2009 3:33 PM -0400 J.R.

Re: [9fans] a bit OT, programming style question

2009-04-10 Thread J.R. Mauro
On Thu, Apr 9, 2009 at 6:09 PM, Eris Discordia eris.discor...@gmail.com wrote: It only starts to balloon once you begin customizing bash. Have you customized your bash by aliases as long as tens or hundreds of lines? Now is it bash's fault you have defined an alias for something that ought to

Re: [9fans] a bit OT, programming style question

2009-04-10 Thread J.R. Mauro
On Thu, Apr 9, 2009 at 6:34 PM, Eris Discordia eris.discor...@gmail.com wrote: this is the space-shuttle dichotomy.  it's a false one.  it's a continuum. its ends are dangerous. So somewhere in the middle is the golden mean? I have no objections to that. *BSD systems very well represent a

Re: [9fans] a bit OT, programming style question

2009-04-09 Thread Eris Discordia
Try env | wc -l in bash. Now tell me why that value is so big. [r...@host ~]# env | wc -l 37 [r...@host ~]# Is that very high? I don't even know if it is or how it would mean anything bad (or good for that matter) assuming it were high. Not to mention, it's a very bad metric.

Re: [9fans] a bit OT, programming style question

2009-04-09 Thread erik quanstrom
On Thu Apr 9 10:48:08 EDT 2009, eris.discor...@gmail.com wrote: Most of it in the 19 lines for one TERMCAP variable. Strictly a relic of the past kept with all good intentions: backward compatibility, and heeding [...] Quite a considerable portion of UNIX-like systems, FreeBSD in this

Re: [9fans] a bit OT, programming style question

2009-04-09 Thread J.R. Mauro
On Thu, Apr 9, 2009 at 9:44 AM, Eris Discordia eris.discor...@gmail.com wrote: Try env | wc -l in bash. Now tell me why that value is so big. [r...@host ~]# env | wc -l        37 [r...@host ~]# Is that very high? I don't even know if it is or how it would mean anything bad (or good for

Re: [9fans] a bit OT, programming style question

2009-04-09 Thread Charles Forsyth
set | wc -l 8047 well. certainly if you leave bash or even dash set as the shell, a terminal or 9term window takes ages on ubuntu. set the shell to p9p rc, 9term starts straight away and you're a better person for it.

Re: [9fans] a bit OT, programming style question

2009-04-09 Thread Devon H. O'Dell
2009/4/9 Richard Miller 9f...@hamnavoe.com: set | wc -l   8047 well. This is nearly as big as the shell itself in the (ahem) good old days. term% tar tzvf interdata_v6.tar.gz bin/sh --rwxr-xr-x     8316 Nov 13 15:48 1978 bin/sh No, it's very likely bigger. wc -l is lines of course, and

Re: [9fans] a bit OT, programming style question

2009-04-09 Thread J.R. Mauro
No, it's very likely bigger. wc -l is lines of course, and I'm guessing each line is more than 1 character. However, $ set | wc -l 64 I don't quite get that locally. It only starts to balloon once you begin customizing bash. I'm not sure how rc handles functions, but the nice thing about

Re: [9fans] a bit OT, programming style question

2009-04-09 Thread Richard Miller
No, it's very likely bigger. wc -l is lines of course Silly me, I was (optimistically) confusing it with wc -c.

Re: [9fans] a bit OT, programming style question

2009-04-09 Thread J.R. Mauro
I prefer the cadillac of shells (zsh) the vw bug (rc). I like this.

Re: [9fans] a bit OT, programming style question

2009-04-09 Thread erik quanstrom
$ echo $BASH_VERSION 4.0.10(2)-release $ set|wc 72 1062107 if this is the criteria, plan 9 loses: ; printenv|wc 73 2102417 - erik p.s. ; cat /bin/printenv #!/bin/rc rfork en cd /env for(i in *){ if(! test -s $i) echo $i ^ '=()' if

Re: [9fans] a bit OT, programming style question

2009-04-09 Thread Eris Discordia
It only starts to balloon once you begin customizing bash. Have you customized your bash by aliases as long as tens or hundreds of lines? Now is it bash's fault you have defined an alias for something that ought to be a script/program in its own right? --On Thursday, April 09, 2009 3:34 PM

Re: [9fans] a bit OT, programming style question

2009-04-09 Thread Eris Discordia
this is the space-shuttle dichotomy. it's a false one. it's a continuum. its ends are dangerous. So somewhere in the middle is the golden mean? I have no objections to that. *BSD systems very well represent a silver, if not a golden, mean--just my idea, of course. it is interesting to me

Re: [9fans] a bit OT, programming style question

2009-04-07 Thread sqweek
2009/4/7 Corey co...@comfortstore.net: Keyboard bindings for example; why couldn't they be handled by a program that just does keyboard bindings + line editing, and writes finalized lines to the shell. Congratulations, you've perceived the difference between shell and terminal. A lot of

Re: [9fans] a bit OT, programming style question

2009-04-07 Thread Eris Discordia
Keyboard bindings for example; why couldn't they be handled by a program that just does keyboard bindings + line editing, and writes finalized lines to the shell. Like... readline(3)? SEE ALSO The Gnu Readline Library, Brian Fox and Chet Ramey The Gnu History Library, Brian Fox

Re: [9fans] a bit OT, programming style question

2009-04-07 Thread sqweek
2009/4/7 Eris Discordia eris.discor...@gmail.com: Keyboard bindings for example; why couldn't they be handled by a program that just does keyboard bindings + line editing, and writes finalized lines to the shell. Like... readline(3)? No. -sqweek

Re: [9fans] a bit OT, programming style question

2009-04-07 Thread ron minnich
On Tue, Apr 7, 2009 at 12:28 AM, Eris Discordia eris.discor...@gmail.com wrote: Like... readline(3)? one hopes not. ron

Re: [9fans] a bit OT, programming style question

2009-04-07 Thread ron minnich
you could break out re expansion into a separate program :-) ron

Re: [9fans] a bit OT, programming style question

2009-04-07 Thread Corey
On Tue, 2009-04-07 at 08:08 -0700, ron minnich wrote: you could break out re expansion into a separate program :-) ron Exactly, and the end user can choose to have a re or glob expansion program, rather than having to muck up the shell code with different flags or whatever.

Re: [9fans] a bit OT, programming style question

2009-04-07 Thread ron minnich
On Tue, Apr 7, 2009 at 9:05 AM, Corey co...@comfortstore.net wrote: On Tue, 2009-04-07 at 08:08 -0700, ron minnich wrote: you could break out re expansion into a separate program :-) ron Exactly, and the end user can choose to have a re or glob expansion program, rather than having to muck

Re: [9fans] a bit OT, programming style question

2009-04-07 Thread Eris Discordia
I see. But seriously, readline does handle bindings and line editing for bash. Except it's a function instead of a program and you think it's a bad idea. --On Tuesday, April 07, 2009 10:31 PM +0800 sqweek sqw...@gmail.com wrote: 2009/4/7 Eris Discordia eris.discor...@gmail.com: Keyboard

Re: [9fans] a bit OT, programming style question

2009-04-07 Thread erik quanstrom
Exactly, and the end user can choose to have a re or glob expansion program, rather than having to muck up the shell code with different flags or whatever. somebody is going to jump in very soon and tell us why this is funny :-) i promised i wouldn't, - erik

Re: [9fans] a bit OT, programming style question

2009-04-07 Thread J.R. Mauro
On Tue, Apr 7, 2009 at 2:21 PM, Eris Discordia eris.discor...@gmail.com wrote: I see. But seriously, readline does handle bindings and line editing for bash. Except it's a function instead of a program and you think it's a bad idea. The man page *does* say it's too big and slow. So does the

Re: [9fans] a bit OT, programming style question

2009-04-07 Thread dave . l
Exactly, and the end user can choose to have a re or glob expansion program, rather than having to muck up the shell code with different flags or whatever. somebody is going to jump in very soon and tell us why this is funny :-) i promised i wouldn't, Well someone's gotta tell these

Re: [9fans] a bit OT, programming style question

2009-04-07 Thread erik quanstrom
Well someone's gotta tell these prepubescents ... Because the V6 shell did it, that's why.. ooh. ooh. i know what you're going to say next: if should be an external program. - erik

Re: [9fans] a bit OT, programming style question

2009-04-07 Thread Eris Discordia
The man page *does* say it's too big and slow. So does the bash manpage. And getting readline to do anything sane is about as fun as screwing around with a terminfo file. A bad implementation is not a bad design. And, in fact, the badness of the implementation is even questionable in the light

Re: [9fans] a bit OT, programming style question

2009-04-07 Thread erik quanstrom
A bad implementation is not a bad design. neither is stink an outhouse, but often they keep company. - erik

Re: [9fans] a bit OT, programming style question

2009-04-07 Thread J.R. Mauro
On Tue, Apr 7, 2009 at 9:48 PM, Eris Discordia eris.discor...@gmail.com wrote: The man page *does* say it's too big and slow. So does the bash manpage. And getting readline to do anything sane is about as fun as screwing around with a terminfo file. A bad implementation is not a bad design.

[9fans] a bit OT, programming style question

2009-04-06 Thread Corey
Not exactly related to Plan 9, but I don't know any other place full of people much smarter than myself who put value in the Unix philosophy, and this idea is partially inspired by something I read about rio/rc. Would there be any merit to breaking the shell apart into a number of smaller

Re: [9fans] a bit OT, programming style question

2009-04-06 Thread erik quanstrom
Would there be any merit to breaking the shell apart into a number of smaller programs? Looking at GNU bash as an example (though I know GNU is probably one of the worst places to look for Unix style), It is my understanding that one program handles many things, such as keyboard bindings