Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Calling `./bin/elasticsearch-sql-cli http://localhost:9200`under docker failed with `ERROR: E is not a recognized option` error message. The root cause is that under docker the environmental variables are automatically appended to the arguments of the sql cli. `"$@"` will contain `-Evar=value` strings added by the `elasticsearch-env` (line 122). This change uses the original argument list (saves it before it is modified) when the sql cli is called. Fixes #57744
- Loading branch information