Add environment-variable substitution to config options
authorAaron Carroll <aaronc@gelato.unsw.edu.au>
Tue, 7 Oct 2008 09:25:20 +0000 (11:25 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 7 Oct 2008 09:25:20 +0000 (11:25 +0200)
commit88b5a391bc2f9eb85066219e453682a746730ead
treeb49f15da14d1dbdb5173073b4730cebd88e1e78f
parent2e8552b07140abd723bf30e9a13613b639eb6b83
Add environment-variable substitution to config options

Strings of the form ${VARNAME} in config option strings are substituted with
the value of the environment variable VARNAME.  Only the right hand side of
an option assignment undergoes substitution.  If VARNAME is empty or
undefined, the empty string is substituted.

Signed-off-by: Aaron Carroll <aaronc@gelato.unsw.edu.au>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
parse.c
parse.h