commit | 82fea77dcddbc49e6aac770b54edb69dfa2acab0 | [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 | 8b1f90a36523d50dd862e49f3cec4d2b933ce79b [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>