commit | 641b0d374eeea65778bf8cb2107064c2aff195eb | [log] [tgz] |
---|---|---|
author | Joe Hershberger <joe.hershberger@ni.com> | Fri Aug 17 10:26:29 2012 +0000 |
committer | Wolfgang Denk <wd@denx.de> | Sun Sep 02 20:30:24 2012 +0200 |
tree | 256be8ba66e737f82f2ac31b1ce0795ea8388bf8 | |
parent | 923c46f97a7936cbdc6e113d7705cf46a73dc85c [diff] |
hush: Add default value substitution support Use standard sh syntax: ${VAR:-default} Use default value: if VAR is set and non-null, expands to $VAR. Otherwise, expands to default. ${VAR:=default} Set default value: if VAR is set and non-null, expands to $VAR. Otherwise, sets hush VAR to default and expands to default. ${VAR:+default} If VAR is set and non-null, expands to the empty string. Otherwise, expands to default. Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>