From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] common, hush [BUG]: exit not work in hush shell
Date: Mon, 17 Sep 2012 07:59:58 +0200 [thread overview]
Message-ID: <20120917055959.06FEE203CF4@gemini.denx.de> (raw)
In-Reply-To: <505561A0.3060108@denx.de>
Dear Heiko,
In message <505561A0.3060108@denx.de> you wrote:
>
> Do you still have this test somewhere?
Not really. It was during the development of an install & upgrade
script, and step by step I removed all constructs that the hush shell
would stumble upon. Sorry.
> Hmm... Okay, so I have two options:
>
> - fix "exit" with arguments
> - update to a recent version of hush (where is the current code from?)
Hush is part of Busybox, see http://www.busybox.net/source.html
> But I have the gut feeling, that the problem is not in the original
> code, but in the u-boot adaptions, as the code in hush.c has a lot
> of "#ifndef __U_BOOT__" ...
There are also bugs in the old original code, many of them long fixed
since.
I once started looking into updating hush, and I have to admit that I
don't understand the need for all of the "#ifndef __U_BOOT__"
removals. When hush support was added, and additional 60 kB of code
was a very heavy thing on most systems, so the primary intention then
was to make the code as lightwight as possible. Today, a much larger
percentage of users is both able to accept such code sizes and looking
for the features offered. Many would even accept somewhat bigger code
if they could get, for example, support for shell functions etc. Not
to mention command substitution...
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
Thought for the day: What if there were no hypothetical situations?
prev parent reply other threads:[~2012-09-17 5:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-14 18:04 [U-Boot] [PATCH] common, hush [BUG]: exit not work in hush shell Heiko Schocher
2012-09-14 18:31 ` Wolfgang Denk
2012-09-16 5:20 ` Heiko Schocher
2012-09-17 5:59 ` Wolfgang Denk [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=20120917055959.06FEE203CF4@gemini.denx.de \
--to=wd@denx.de \
--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