0

March 12th, 2009 Denys Vlasenko wrote:

Plans to implement it — BASH like array support — eventually for ASH_BASH_COMPAT, yes. Need to have enough free time for that. (volunteers much welcomed)

Since which busybox version does its ash compiled with ASH_BASH_COMPAT enabled
include BASH like array support?

1
  • 1
    Does it support arrays? Dec 26, 2017 at 20:07

1 Answer 1

2

It doesn't.

I just pulled the latest version at https://git.busybox.net/busybox/ and built it with ASH_BASH_COMPAT enabled. (It's enabled by default; see shell/Config.in).

$ bash -c 'a=(zero one two) ; echo ${a[2]}'
two
$ ./busybox ash -c 'a=(zero one two) ; echo ${a[2]}'
ash: syntax error: unexpected "("
$

The latest update was 2017-12-26 20:19.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .