nash
nash copied to clipboard
Nash stands for Nash shell.
Today when there is multiple files that matches with possible init files (eg. init and init.sh) we just silently load the first one (which one is it ? I don't...
Today I read [this paper](http://www.vpri.org/pdf/tr2010001_worlds.pdf) about **Worlds**, a design/construct to control the scope of side effects in programming languages. The solution is brilliant and solves several hard to solve problems...
I thought about modeling our concurrency primitives as function, instead of syntactic constructions or overloading the rfork call. The idea would be to have two builtin functions: * go() *...
why? Because cygwin's pwd sucks on windows: ``` λ> cd C:\Users\Tiago\go\src\github.com\NeowayLabs\nash\stdbin\pwd λ> C:\tools\cygwin\bin\pwd.exe /cygdrive/c/Users/Tiago/go/src/github.com/NeowayLabs/nash/stdbin/pwd ``` why? Because of that several tests fail on windows when using cygwin tools.... I propose...
``` λ> 9 ls ERROR: :1:0: Unexpected token parsing statement 'NUMBER' ```
Shell has a crappy support to cleanup using traps, a good use case is to remove temporary directories: ``` file=$(mktemp file.XXXXXXX) trap "rm -f $file" EXIT # Rest of the...
Small binaries (probably from enzo) that have more predictable behavior and nicer APIs This way we can use commands on the stdlib and still have predictable behavior when executing the...
``` λ> bash $ yes "" | make oldconfig scripts/kconfig/conf --oldconfig Kconfig # # configuration written to .config # $ exit λ> yes "" | make oldconfig scripts/kconfig/conf --oldconfig Kconfig...
Packages will work by returning a value that can be used when you import a package. For example, ``` import "x" ``` Will create a local variable `x` containing the...