5 ms·
Interesting idea. Strange choice to pick Bash as your default shell though. If you're writing a new OS you don't have to repeat the mistakes of the past.
by IshKebab 3y ago
Interesting idea. Strange choice to pick Bash as your default shell though. If you're writing a new OS you don't have to repeat the mistakes of the past.
- thelastparadise 3y agoWhat do you suggest instead? What's wrong with bash?
- baudaux 3y agoFeel free to propose an alternative that can be compiled in WebAssembly. I was happy succeeding to compile Bash and to make it working
- IshKebab 3y agoNushell seems like the obvious choice. It's modern and well designed and written in Rust so compiling to WASM should be easy. Actually it looks like they have already done it: https://www.nushell.sh/demo/ https://www.nushell.sh/demo/
- baudaux 3y agoI have to try compiling a rust program but not sure it is so trivial integrating it into exaequOS. I use and abuse of async calls
- pmarreck 3y agoBash's problem, as well as its selling point, is that it is both "good enough" and "ubiquitous" (both in installations and inside the many, many brains of devs) which means that it is essentially the JavaScript of shell, and will thus never go away. I used to try to fight it, then I decided to accept it, and things have gone better since. I actually think something like es-shell https://wryun.github.io/es-shell/ https://wryun.github.io/es-shell/ is (or would have been) the most underrated possible replacement for bash, but oh well
- baudaux 3y agoAs you say it is good enough. As I am doing this project alone now, it is a lot of work. If people help me in the future, why not including other shells
- fortran77 3y agoWhat’s wrong with bash? It’s fine. Of course, the first thing I do on any system is install PowerShell.
- baudaux 3y agoDo you think I can put PowerShell is a Unix like system ? I thought it was for Windows only
- IshKebab 3y ago* Unstructured piping is unreliable and awkward * It's extremely weakly typed * It's full of gotchas and surprising behaviours * It's extremely fragile In short, it's extremely difficult to write Bash that is correct. Just add a space to your home directory and you'll see. That's generally not too much of an issue for commands you're running interactively. The problem is people think "well I've got a command that seems to work for me! I'll save it in a file", and now you have a janky broken script.