On 10/23/06, Axel Liljencrantz <[EMAIL PROTECTED]> wrote: > On 10/23/06, Philip Ganchev <[EMAIL PROTECTED]> wrote: > > Since a few versions ago, I have been getting an error message when I > > start Fish: > > > > fish: Could not autoload item "functions", it is already being > > autoloaded. This is a circular dependency in the autoloading scripts, > > please remove it. > > > > Apparently it's because my file > > "~/.config/fish/functions/functions.fish" invokes ``functions foo -d > > "Bar"''. > > > > This is not a bug. Fish interprets this as an attempt to invoke the > 'functions' function while defining it. If you want to use the builtin > with the same name, you can write 'builtin functions foo -d'
:-) I see it as a bug from the user's point of view because I wasn't trying to define a function. To do that, I would have to write ``function foo;'' and so on. :-) Why should fish assume that any script necessarily defines a function (called the same name as the file)? This is an extra rule to remember when writing a script, and leads to surprises like that, right? Using ``builtin functions'' works, but why make people use it? It is a different thing to say that any function must be defined in a file with the right name, as Matlab does. ------------------------------------------------------------------------- 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
