Skip to content

ACCUMULO_JAVA_PREFIX in accumulo shell script not expanding correctly #3697

@dlmarion

Description

@dlmarion

The * subscript in ACCUMULO_JAVA_PREFIX at

JAVA=("${ACCUMULO_JAVA_PREFIX[*]}" "$JAVA")
is expanding the array to a single word separated by IFS. In testing, I believe @ should be used here instead.

Versions (OS, Maven, Java, and others, as appropriate):

  • Affected version(s) of this project: 2.10

To Reproduce
I wrote a script to test this out. The following fails:

ACCUMULO_JAVA_PREFIX=(
        '/usr/bin/numactl'
        '--all'
)

CMD=("${ACCUMULO_JAVA_PREFIX[*]}" "/usr/bin/java")

echo "${CMD[@]}"
exec "${CMD[@]}" "--version"

Changing * to @ on the line starting with CMD= allows the script to succeed.

Metadata

Metadata

Assignees

Labels

bugThis issue has been verified to be a bug.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions