execline
Software
www.skarnet.org
The importas program
importas replaces a literal with the value of an
environment variable, then executes another program.
Interface
importas [ -s [ -c ] [ -d delim ] ] variable envvar prog...
- importas fetches the value of envvar in the
environment. If envvar is undefined, the empty string is
returned.
- If the -s option is set, that string is
split, according to the crunch
flag and delim value.
- importas then performs
variable substitution on prog...,
with variable as key and that string as value.
- importas then execs into the modified prog....
Options
- -s : split.
- -c : do not crunch
crunch extra delimitors. Default: crunch.
- -d delim : use the characters of the string
delim as delimitors for the
split. Default: " \n\r\t". If delim is the empty string,
envvar will be assumed to contain a
valid sequence of netstrings.