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.