> Unfortunatly, fish > disallows you wo wrap 'function', 'if', 'while' 'end' and the other > builtins that create or destory a block scope. If fish didn't do this, > it would be impossible to perform many of the rather detailed syntax > checks fish does ahead of time.
Fair enough. > It would be possible to write a wrapper around the 'functions' builtin > to save a function, though, since that builtin does not create a new > block scope. That way you'd write 'function foo; blah blah blah; end; > functions -S foo'. Would that be an improvement? Yes ... but no better, I think, than your earlier suggestion: > one could define a function: > > function save_function > for i in $argv > functions $i >~/.fish.d/functions/$i.fish > end > end So I suggest you go with that (although maybe with an easier-to-type name? 'savefunc'?). Jason ------------------------------------------------------------------------- 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
