]> git.e2factory.org Git - e2factory.git/commit
Introduce elib.callcmd() with more flexibility
authorTobias Ulmer <tu@emlix.com>
Tue, 19 Nov 2013 18:09:43 +0000 (19:09 +0100)
committerTobias Ulmer <tu@emlix.com>
Wed, 16 Nov 2016 14:41:17 +0000 (15:41 +0100)
commit16547782bf122ff33f877486af6df8040fcc85fe
tree6a101d0a10511de0579bd5a599774cb0f7509b43
parente8d683e28ca8fcf7b37640e1a16587ca6ce652c9
Introduce elib.callcmd() with more flexibility

Commands can now be passed as argument vectors straight into execvp().
This removes all shell quoting headaches when going through this
interface.
File descriptors can be set up in a table-driven way as necessary.
A workdir for the child can be set. Environment variables can be
supplied now.

All callcmd friends are either removed or converted to this interface
with the exception of callcmd_pipe().

Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/e2lib.lua