dlmarion opened a new issue, #3697:
URL: https://github.com/apache/accumulo/issues/3697

   The `*` subscript in `ACCUMULO_JAVA_PREFIX` at 
https://github.com/apache/accumulo/blob/38c261d1236f118ffc2c6eebc505f5daf12bf0e2/assemble/bin/accumulo#L86
 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.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to