7 ms·
absolutely... Im imagining a 100% javascript shell. 'jash' ? node.js is great for all those perl-y 1 to 10 liners. It should be the shell.
by gord 15y ago
absolutely... Im imagining a 100% javascript shell. 'jash' ?
node.js is great for all those perl-y 1 to 10 liners. It should be the shell.
- wavephorm 15y agoMaybe not a shell, but for simple scripts you can save your js code with the following at the top: #!/usr/bin/env node Then save the file as "myscript" and run it as any other executable. Node already has a repl for experimentation.
- gord 15y agoyes, and I do that often. My point is that Javascript + Node would make the basis for a nice bash replacement.
- jebblue 15y agoIf you like JavaScript. Java would be better. There is the Bean Shell. That doesn't replace BASH for what it does well. In fact, that's the point of BASH, not to replace traditional languages but to bind their output programs together.