ruk·si

Execline

Updated at 2025-07-02 03:00

Execline is a non-interactive scripting language designed for efficiency and security. You'd use it instead of e.g. Bash for writing scripts that automate tasks, usually in a Unix-like environments.

Execline is one-dimensional. It uses chain loading to execute commands so it might feel weird that all commands are chained together. There is "no state" like in traditional shells by default, you have to be explicit about everything.

#!/bin/execlineb
echo 1
echo 2
# This prints "1 echo 2"
#!/bin/execlineb
foreground { echo 1 } echo 2
# This prints "1" and then "2"

Newlines are not significant in execline, they are essentially just spaces.

You use importas to import environment variables.

Noting is imported by default, so you need to be explicit.

#!/bin/execlineb
importas -D 8000 port PORT
echo "Starting server on port ${port}"

You use backtick to execute commands and capture their output.

#!/bin/execlineb
with-contenv
foreground {
  backtick -n UID { id -u }
  importas -u uid UID
  if { eltest ${uid} -ne 0 }
    echo "I AM NOT ROOT"
}
/bin/server

Sources