sh shell - pattern substitution bug?

Steven Honeyman stevenhoneyman at gmail.com
Fri Jan 9 13:29:22 UTC 2015


On 8 January 2015 at 22:42, Richard Moore <rich at richud.com> wrote:
> Hi,
>
> I think this is a pattern substitution bug with bb's bourne shell?
> (afraid I cant find anything with a real shell (non-dash) to double check
> on, so apologies if it is me.)
>
>
> busybox 1.23.0 (sh shell)
> -------------------------------------
> ~ # i=stuff%%this%%that
> ~ # j=${i//%%/$'\x0A'}

Pattern substitution is just a bashism as far as I know, so no reason
to expect this to work in any other shell.


More information about the busybox mailing list