3 ms·
Yeah I've been looking at fish. Definitely has the cleanest code out of any shell I've looked at :) (e.g. bash, dash, zsh, mksh) And I came to realize what
by chubot 6y ago
Yeah I've been looking at fish. Definitely has the cleanest code out of any shell I've looked at :) (e.g. bash, dash, zsh, mksh)
And I came to realize what a huge effort it is on top of the language:
http://www.oilshell.org/blog/2020/02/recap.html#fish-oil-is-a-good-idea-link http://www.oilshell.org/blog/2020/02/recap.html#fish-oil-is-...
Also I wonder if you knew of the existence of ble.sh, a fish-like UI written in pure bash! I think it's the biggest shell program in the world:
http://www.oilshell.org/cross-ref.html?tag=ble.sh#ble.sh http://www.oilshell.org/cross-ref.html?tag=ble.sh#ble.sh
https://github.com/oilshell/oil/wiki/The-Biggest-Shell-Programs-in-the-World https://github.com/oilshell/oil/wiki/The-Biggest-Shell-Progr...
----
I did add little hack in the lexer for autocompletion of partial input. But my hope though is to keep most of that logic in the parser and not the lexer? Though it is true I was thinking of breaking up the exact regex we talked about for similar reasons, e.g. a single token:
' [^']* '
vs. 3 tokens
'
[^']*
'
I think the latter could be better for completion of paths in quotes, which bash does, but I haven't revisited it yet.