On 4/24/07, Tassilo Horn <[EMAIL PROTECTED]> wrote: > Hi all, > > today I updated my darcs checkout of fish, and it seems the function > count has gone, although many built in function want to use it. So I get > errors like this all the time:
Oops. Fixed. Thanks! :-) > > ,---- > | fish: Unknown command "count" > | /usr/share/fish/functions/alias.fish (line 4): if count $argv > >/dev/null > | ^ > | in function "alias", > | called on line 27 of file "/home/heimdall/.config/fish/config.fish", > | with parameter list "angband=angband -mgcu -- -b" > | > | in . (source) call of file "/home/heimdall/.config/fish/config.fish", > | called on standard input, > | > | fish: Unknown command "count" > | /usr/share/fish/functions/alias.fish (line 3): count $argv > | ^ > | in command substitution > | called on line 14 of file "/usr/share/fish/functions/alias.fish", > | > | in function "alias", > | called on line 27 of file "/home/heimdall/.config/fish/config.fish", > | with parameter list "angband=angband -mgcu -- -b" > | > | in . (source) call of file "/home/heimdall/.config/fish/config.fish", > | called on standard input, > | > | fish: Unknown command "count" > | /usr/share/fish/functions/__fish_print_help.fish (line 3): count $help > | ^ > | in command substitution > | called on line 19 of file > "/usr/share/fish/functions/__fish_print_help.fish", > | > | in function "__fish_print_help", > | called on line 3 of file "/usr/share/fish/functions/alias.fish", > | with parameter list "switch" > | > | in command substitution > | called on line 14 of file "/usr/share/fish/functions/alias.fish", > | > | in function "alias", > | called on line 27 of file "/home/heimdall/.config/fish/config.fish", > | with parameter list "angband=angband -mgcu -- -b" > | > | in . (source) call of file "/home/heimdall/.config/fish/config.fish", > | called on standard input, > | > | expr: syntax error > | expr: syntax error > | head: option requires an argument -- n > | Try `head --help' for more information. > | switch: Expected exactly one argument, got 0 > | /usr/share/fish/functions/alias.fish (line 14): switch (count $argv) > | ^ > | [...] > `---- > > With yesterdays checkout all was fine. > > And about one or two weeks ago the save_function function was gone, but > this seems not to be used in fish's commands. But I used it in my config > file. I commented it out because it was not needed anywhere, because the > saved function already resides in ~/.config/fish/functions/. > > Nom I'm asking myself if the removal of save_function was intended. Was > it? save_function wasn't removed, it was renamed into funcsave in order to be more consistent with funced and vared. I belive this naming was mentioned briefly on the mailing list a few months ago. :) You should try the new vared function, by the way, it's really cool! > > Bye, > Tassilo > -- > Fighting patents one by one will never eliminate the danger of software > patents, any more than swatting mosquitoes will eliminate malaria. > (Richard M. Stallman) > -- Axel ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Fish-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fish-users
