dimitriye98 Posted October 8, 2015 Posted October 8, 2015 Updated https://github.com/dimitriye98/OC-DShell Install with: wget https://raw.githubusercontent.com/dimitriye98/OC-DShell/master/dsh.lua New Features:Command mode: dsh -c "echo hi" => prints "hi" and exits Comments for shell scripting, just start them with a `#` Builtins! No more executing a whole other program just to do simple stuff like printing text; the following commands are now built into the shell:`:`: nop `source`: evaluates the given file; a proper `./` construct will be added soon `eval`: complete passed command / script `exec`: complete the passed command and exit with the same exit code `echo`: POSIX compliant echo command `exit`: Guess. Features:Multiple commands in a single line, delimited by semicolons: echo hi; echo hello => hihello Short-circuiting and and or operators: In file test.lua: error() test && echo hello => test || echo hello => hello echo hi || echo hello => hi Coming Soon:Command expansion: $(command) or `command` Arithmetic expansion: $((expression)) Long-term Goals:Shell scripting POSIX compliance Quote
deFENCE Posted November 8, 2015 Posted November 8, 2015 Wow, this is awesome! Too bad there is no shell scripting yet! I'll definitely use this once it does. Quote