Re: [PATCH v2] config.sub: Work around command assignment bug in some shells.

2021-08-20 Thread Dmitry V. Levin
On Sat, Aug 14, 2021 at 12:20:38PM -0400, Nick Bowler wrote: > When combining variable assignments with a shell command, some older > shells (notably heirloom-sh and presumably also Solaris 10 /bin/sh) > have a bug which causes the assignment to alter the current execution > environment whenever th

[PATCH v2] config.sub: Work around command assignment bug in some shells.

2021-08-14 Thread Nick Bowler
When combining variable assignments with a shell command, some older shells (notably heirloom-sh and presumably also Solaris 10 /bin/sh) have a bug which causes the assignment to alter the current execution environment whenever the command is a shell built-in. For example: % dash -c 'x=good; x=