u-boot.lists.denx.de archive mirror
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [PATCH] hush: Fix assignments being misinterpreted as commands
Date: Wed, 03 Mar 2021 10:45:32 +0100	[thread overview]
Message-ID: <872080.1614764732@gemini.denx.de> (raw)
In-Reply-To: <20210302133435.GZ10169@bill-the-cat>

Dear Tom,

In message <20210302133435.GZ10169@bill-the-cat> you wrote:
> 
> > Only the third example is affected by this patch.
>
> OK.  But to what end?  Historically we have a buggy but mostly
> compatible "hush" that acts like "sh" does.  A more flexible shell could
> solve a lot of different use cases including making boot scripts that
> people end up writing being clearer and easier to write/debug/maintain.
> What I worry about here is making our shell not act like any regular
> shell people use.

I am always surprised why people try to add minor fixes (and
sometimes bells and whistles) to ancient versions of the software
without checking recent code first.

The shell in busybox v1.32 shows this behaviour:

	$ foo=bar echo $foo

	$ echo $foo

	$ baz=bar echo qux
	qux
	$

So the specific problem has (long) been fixed in upstream, and
instead of adding a patch to our old version, thus cementing the
broken behaviour, we should upgrade hush to recent upstream code.

Yes, I am aware that this is a lot more effort that this little
patch, but if we could combine the efforts that have already been
wasted over the years for such little fixes here and there wew could
have upgraded long ago.

Grooming a dead horse makes little sense to me.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
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
What is research but a blind date with knowledge?      -- Will Harvey

  parent reply	other threads:[~2021-03-03  9:45 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-28 21:29 [PATCH] hush: Fix assignments being misinterpreted as commands Sean Anderson
2021-02-28 23:40 ` Heinrich Schuchardt
2021-02-28 23:51   ` Sean Anderson
2021-03-01 14:17     ` Tom Rini
2021-03-01 18:26       ` Heinrich Schuchardt
2021-03-01 23:07         ` Sean Anderson
2021-03-02 13:20           ` Tom Rini
2021-03-02 13:24             ` Sean Anderson
2021-03-02 13:34               ` Tom Rini
2021-03-02 23:09                 ` Sean Anderson
2021-03-03  9:45                 ` Wolfgang Denk [this message]
2021-03-01 18:43 ` Tom Rini
2021-04-13 14:27 ` Tom Rini

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=872080.1614764732@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;
as well as URLs for NNTP newsgroup(s).