66
www.obarun.org

66-envfile

This command is a mix of s6-envdir and importas program. It reads file containing variable assignments on the given directory, adds the variables to the environment, then executes a program.

Interface

	66-envfile [ -h ] [ -f file ] [ -l ] dir prog
	

This tool expects to find a regular file(s) in dir containing one or multiple key=value pair. For earch files found, it will parse the file, import the key=value then execs prog with the modified environment.

Options

File syntax

file is a text file containing lines of the form key = value.Whitespace is permitted before and after key, and before or after value, Quoting is also possible.

Empty lines, or lines containing only whitespace, are ignored. Lines beginning with # (possibly after some whitespace) are ignored (and typically used for comments). Comments are not possible at the end of lines: key = value # comment is not a valid comment.

Empty value is not permitted.

If keybegin by a '!' character: !key=value the key will be removed from the environment after the substitution.