[Toybox] Bash Compatibility Patch

2019-09-14 Thread Eric Molitor via Toybox
I know that you are working on toysh which I'm looking forward to. In the meantime below is a patch to improve compatibility with older/odd versions of bash. This fixed a minor build issue I was having on MacOS (which was using zsh in emulated bash mode) as well as an oddball embedded SDK using a

Re: [Toybox] Bash Compatibility Patch

2019-09-14 Thread Eric Molitor via Toybox
On Sat, 29 Jun 2019 at 18:37, Rob Landley wrote: > On 6/29/19 7:52 AM, Eric Molitor wrote: > > I know that you are working on toysh which I'm looking forward to. In the > > meantime below is a patch to improve compatibility with older/odd > versions of > > bash. This fixed a minor build issue I

Re: [Toybox] Bash Compatibility Patch

2019-09-14 Thread Eric Molitor via Toybox
Correct zsh in emulated bash mode. The other is a version of pdksh symbolically linked as /bin/bash but only claims to be a Bourne shell, not bash. Sorry for the confusion. On Mon, 1 Jul 2019, 21:45 Rob Landley, wrote: > On 7/1/19 3:03 PM, enh wrote: > > and in the other case they talk about a