public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: James Chargin <jimccrown@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] HUSH logical AND/OR expressions
Date: Wed, 29 Apr 2015 08:19:41 -0700	[thread overview]
Message-ID: <5540F68D.9010608@gmail.com> (raw)
In-Reply-To: <20150428225112.92E38380153@gemini.denx.de>

Wolfgang,

Thanks for your contributions.

On 04/28/2015 03:51 PM, Wolfgang Denk wrote:
> Dear Joe,
>
> In message <CANr=Z=YxsT-VOje5jA0k00BSxNROXBOPXMG-Q_8_7jAYN=fJCw@mail.gmail.com> you wrote:
>>
>>> I noticed you asked for a reference to the original hush code that is the
>>> origin for U-Boot's adaptation. I couldn't find a reply to that question. I
>>> also haven't been able to find anything with a quick we search. Do you know
>>> where it did come from?
>>
>> I never got a response, but it appears to be busybox...
>
> Oops, sorry.  Yes, of course it is busybox.
>
> As far as I can tell, it was added around October 2001 to the PPCBoot
> project as part of the PPCBoot v1.1.0 release:
>
> * Added "hush" shell (from Busybox) as alternative command line
>    interpreter, thus enabling powerful command line syntax like
>    if...then...else...fi conditionals or `&&' and '||' constructs
>    ("shell scripts").
>
>    See the README file for information about implementation and usage.
>

I should have thought of this myself. I could have looked in the commit 
history or release notes.

Just for completeness, I tried the commands using busybox:

# busybox|head -1
BusyBox v1.20.2 (2013-07-02 15:49:59 PDT) multi-call binary.
# false && true || echo ECHO
ECHO
# false && false || echo ECHO
ECHO
# true && false || echo ECHO
ECHO
#

-- 
Jim Chargin
AJA Video Systems                       jimc at aja.com
(530) 271-3334                          http://www.aja.com

      reply	other threads:[~2015-04-29 15:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-27 13:39 [U-Boot] HUSH logical AND/OR expressions Joakim Tjernlund
2015-04-28 18:00 ` Joe Hershberger
2015-04-28 18:19   ` James Chargin
2015-04-28 18:35     ` Joe Hershberger
2015-04-28 19:13       ` James Chargin
2015-04-28 19:47         ` Joe Hershberger
2015-04-28 22:51           ` Wolfgang Denk
2015-04-29 15:19             ` James Chargin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5540F68D.9010608@gmail.com \
    --to=jimccrown@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox