20 points · by based2 · 10y ago · 3 comments
Also, `pwd` is a built-in command in bash(1)[2], not a subprocess. The whole page brims with misunderstanding.
If you don't understand the tools you're aiming to replace, you're bound to fail.
[1] http://lihaoyi.github.io/Ammonite/#Ammonite-Shell [2] http://linux.die.net/man/1/builtins
Old linked subject: https://github.com/tools4j/unix4j
I don't think I would replace my regular interactive bash or zsh with this, though, due to some of the extra verbosity. `cd!` instead of cd, `'file` instead of `file`. It also doesn't seem to have support for globbing.
It definitely looks much better than writing a multiline bash or zsh script, though.