On 8/14/06, Martin Bähr <[EMAIL PROTECTED]> wrote: > On Mon, Aug 14, 2006 at 01:49:54PM +0200, Axel Liljencrantz wrote: > > Thanks for the support, glad you like fish. > > actually the sad part is that i don't like fish that much because of the > fishbones. i just hate it to have inedible parts in my food. > :-)
You should try one of the many fishes where bones aren't an issue then. Salmons have strong and thick bones that are easily removed with a special plier before preparing the fish. Salmon is delicious when served raw as sushi or with a mustard sauce and potatoes, or it can be served cooked, fried or barbequed with a variety of sauces. Another alternative you could consider is herring. Small herrings have very soft bones, you barely notice them while eating them. They tast wonderful when served with lingonberries. Also, the commandline shell named fish contains no bones. > > > Fish contains ~6000 lines of shellscript, most of it in the completion > > system. So it's certainly possible to write non-trivial programs in > > fish, > > i don't discount that, especially when you compare it to sh scripts, > fish syntax is much cleaner and therefore better to write larger > readable scripts. > > > but I have to agree that e.g. Python or Ruby are much nicer > > languages for almost all types of scripting. > > python, yes, but ruby not really, it fails miserably on a minimalistic > syntax. (i'd think lisp probably has one the most minimalistic syntaxes > and fish maybe nearby, whereas perl and ruby are the other end with the > most complex syntaxes around. python is somewhere in the middle) Ruby fails on minimalism. There are other factors to take in, though. Very few people spend many hours per week writing shellscripts, therefore, a shellscript language should be very simple and consistent, otherwise you keep forgetting little details all the time. If you use a language for many hours every day, the learning curve is less important than brevity and readability. I actually have relatively little experience with Ruby, but what little I have tells me that while Ruby is a somewhat complex language, it is readable, consistent and well designed for the most part. Perl, on the other hand, is not. So I would argue that Ruby might be a very well designed language for people who intend to use it a lot. But then maybe I simply haven't seen enough of Ruby. > > though the programming language i work with is pike. (note that it's > another fish (which makes the above food comment evenmore ironic :-)) Haven't used Pike, though I am under the impression that it's mostly PHP without the train wreck. > > > >universal buffer > > It should be possible to do this using a simple universal variable. > > it was the universal variables that made me think of this. > > universal variables for shells are a very useful and innovative idea btw. I don't know about innovative. From the 'C infrequently asked questions': 18.6: How can a process change an environment variable in its caller? Only by force. Example code for Unix: memmove(getppid() + getenv(NULL), getpid() + getenv(NULL), sizeof(environ)); Though I must say I like the fish solution better. ;-) > i was often irritated when i had to change shell configuration on each > of my shells (and due to screen i usually run 10 of them in paralell) > > eg, when i had to change the BROWSER, thanks to this i could be sure > that i didn't miss any shell, and save a lot of keystrokes too. > > greetings, martin. > -- > cooperative communication with sTeam - caudium, pike, roxen and unix > offering: programming, training and administration - anywhere in the world > -- > pike programmer travelling and working in europe open-steam.org > unix system- bahai.or.at iaeste.(tuwien.ac|or).at > administrator (caudium|gotpike).org is.schon.org > Martin Bähr http://www.iaeste.or.at/~mbaehr/ > -- Axel ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users