Globbing

The variants revolving around an instance of the ~path struct type were meant to delay the expansion of the glob(3) expression until it was needed by an external command.

That form isn’t very well thought through and relies on some side-effects in the VM.

In the meanwhile, use plain old glob.

function glob s

glob expand s

Param s:

glob(3) pattern

Type s:

string

Return:

list of matching pathnames

Rtype:

list

Raises ^rt-glob-error:

struct ~path
Field:

pattern

Canonical:

~path

function ~path? arg/126
function make-~path [arg/126]
function ~path-pattern arg/126
function set-~path-pattern! arg/126 val/126

Last built at 2025-08-15T06:10:38Z+0000 from 3d9f9d3 (dev) for Idio 0.3.b.6