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/125
function make-~path [arg/125]
function ~path-pattern arg/125
function set-~path-pattern! arg/125 val/125

Last built at 2024-12-21T07:10:38Z+0000 from 62cca4c (dev) for Idio 0.3.b.6