EXPORT-ARRAY(1)

NAME
export-array - encode a set of values into an environment variable, then execute a program

SYNOPSIS
In an execline script:

export-array [-d delim] var { value1 value2 ... } prog...

DESCRIPTION
export-array reads a (possibly empty) block (cf. execline-block(7)) of values, and encodes them into the var environment variable.

It then execs into prog.

var must be given without a dollar!

var must not contain the character ‘=’.

A list of values encoded via ‘export-array VAR { value1 value2 ... }’ can be retrieved via ‘importas -Ssd "" VAR’. Then ‘${VAR}’ will be split into as many words as there are values.

A list encoded via ‘export-array -d delim VAR { value1 value2 ... }’ can similarly be retrieved via ‘importas -Ssd delim VAR’.

OPTIONS

-d delim
    Encode the list of values using the first character of delim as a terminator. Only use this when you know the character does not appear in any of the values! By default, no terminator or character is specified, and the values are encoded as netstrings.

SEE ALSO
importas(1), execline-block(7)

This man page is ported from the authoritative documentation at: https://skarnet.org/software/execline/export-array.html

AUTHORS
Laurent Bercot Lennart Jablonka <humm@ljabl.com> (man page port)