ela
Contents

ManualAgents

A built-in or a command

In the terminalela --spec a-built-in-or-a-command

cp, stat and grep work in ela as in any shell. The built-in procs for the common ones start no process, about a hundred times faster in a loop, and give ela values, a map or a number, where the command gives text to parse.

info = file.info("notes.md")              # not $(stat -c '%a %s' notes.md)echo "$info['mode'] $info['size']"
ProgramBuilt in
cp, mv, lnfile.copy, file.move, file.link
stat, touch, mktempfile.info, file.touch, file.temp and dir.temp
du, finddir.size, dir.walk
chmod, chownfile.chmod, file.chown
cmp, sha256sumfile.same, hash.sha256
realpath, readlink, basename, dirnamepath.real, path.link, path.base, path.dir

(ela --spec builtins-or-commands)