786 B
786 B
Luash
A lua preprocessor for shell scripting.
Why
Although traditional POSIX shells are highly portable and can be extremely fast, their syntax can be arduous to read.
Lua is a lightweight and fast language that already has the features needed to become a great scripting language.
This project aims to add syntactic sugar to make the process of write commands in lua much easier.
Inspired by other projects such as Xonsh and Ruby.
Features
Shell execution via backticks
files = `ls -a`
Variable substitution in shell commands
dir = "/"
files = `ls #{dir}`
Environment variable access
print($SHELL)
terminal = $TERM
print("This will just print normally $SHELL")
print("This will substitute with the environment variable ${SHELL}")