On Fri, Sep 08, 2006 at 04:37:39PM +0200, Axel Liljencrantz wrote: > In the end, it seems to me like variables and functions are a bit like > each other, but not enough that they should be merged.
have you considered merging in the other direction? ie: have each client simply write their universal variables to the file, and have others pick it up from there? this would be a bit slower, but it might eliminate the need for fishd. (i don't know what else fishd does though but in general i do find that fish and fishd communicate more than should be needed) > 'function -S foo; echo bar; end' vs. 'function foo; echo bar; end; > save_function foo'. well, i just went through the steps of creating a function, on the commandline and then saving it to a file. i did it as: function foo; echo bar; end testing foo echo "function foo; echo bar; end" > ~/.fish.d/functions/foo.fish edit the file to add linebreaks the thing with this is that 'save_function foo' would ensure that the function you previously defined, is the one being saved, and not a potentially different version of it. (in the above case i had variable references which were expanded, and i had to go back and fix that) on the other hand, i find that since functions are autoloaded, the following proccess works equally well: edit ~/.fish.d/functions/foo.fish save test edit... ie: no need to use the thight commandline at all. though the commandline is convenient if you want to turn a previous non-function commandline into a function. 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/ ------------------------------------------------------------------------- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/fish-users
