From: Wolfgang Denk Date: Sun, 02 Sep 2012 20:30:33 +0200 Subject: [U-Boot] [PATCH 1/3] hush: Add default value substitution support In-Reply-To: <1345235191-13757-1-git-send-email-joe.hershberger@ni.com> References: <1345235191-13757-1-git-send-email-joe.hershberger@ni.com> Message-ID: <20120902183033.63F32203B2F@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Joe Hershberger, In message <1345235191-13757-1-git-send-email-joe.hershberger@ni.com> you wrote: > 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 > --- > common/hush.c | 43 ++++++++++++++++++++++++++++++++++++++++--- > 1 file changed, 40 insertions(+), 3 deletions(-) Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de It is the quality rather than the quantity that matters. - Lucius Annaeus Seneca (4 B.C. - A.D. 65)