nash
nash copied to clipboard
Nash stands for Nash shell.
Nash is using `os/exec.LookPath` of Go to look for paths of commands, but this implementation interprets "" (empty path) as "." in the variable `$PATH` and this could lead to...
This works: ```sh λ> echo works works λ> ``` This doesn't: ```sh λ> echo -n "doesn't works" λ> ``` If last stdout line does not contain \n then the prompt...
Some people only go-get the project, but this way "nash -version" prints nothing. The version info is injected by linker in the makefile, and only put the current branch. To...
``` sh λ> echo 'hello world' hello world λ> echo "hello world" hello world ``` Single quoted string must behave in the same way as double quoted string.
Like line below: https://github.com/NeowayLabs/nash/blob/159659fa863570c7be9f692dfe54986ff9ab46c7/internal/sh/split.go#L99
The parser complain in the code below: ```sh tests = ( # oops some list ) ``` The parser is right regarding our specification, but I think we need to...
Just to now lose the idea that we discussed @tiago4orion what we have until now would be something like: ```sh out1, status1
On every POSIX shell, the code below is valid: ```sh "/home/user/some path with spaces/bin/cat" /etc/hosts ``` To invoke full path names with spaces. Nash doesn't supports it... I dislike the...
When using multi-line language constructs (for, fn, etc) in the cli, the history gets corrupted some times. Nash is using the readline history directly, but we'll need to handle that...