ela
Contents

ManualShell

A value at the prompt

In the terminalela --spec a-value-at-the-prompt

A call typed alone on the prompt's line prints what it gives, a line for each value: text, numbers and booleans as echo prints them, a list, map or struct as ela writes it. null, and a call that gives nothing, print nothing.

€ list.sort([3, 1, 2])[1, 2, 3]€ str.upper("abc")ABC€ str.cut("host=web", "=")hostwebtrue

echo prints a call with words around it, at the prompt as in a script: echo "hosts:" len($hosts) "up" prints hosts: 3 up (LANGUAGE.md, echo prints any value).

Only at the top level of a line typed at the prompt: inside a block typed there, in a script, in -c and in init.ela, a built-in whose value a line drops is the error before the run that ela --spec dropped describes, and a proc's value is dropped.