Isaac Dupree wrote: > > $m/inst/stow/ > > I just want to cd there! It's no different from, say, ~/inst/stow/ > which means the same thing as $HOME/inst/stow/ ! Tab completion even > works! And I get: > fish: Variables may not be used as commands. Instead, define a function. > See the > help section for the function command by typing “help function”. > > I'm just going to patch fish to allow variables in commands (assuming > it's simple enough), for my own use; I'll send the patch in case you > feel like applying it.
argh, parser.c seems so imperative with functionality mixed up in parsing, I'm not sure I'll be able to (hack around trying out things and making it do exactly what I want). I'm of half a mind to rewrite the whole thing in Haskell, which could be fun, but take quite a while (and I haven't looked at the rest of fish's code, maybe the other parts would look better to me).. so who knows. It would be ultimate to write fish in POSIX shell: a bit slow, but quite portable :-P (well, it would be quite sufficient just to have a way to automatically translate fish code to sh code -- remember eval is still a bit evil!) -Isaac ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ Fish-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fish-users
