Console fixes and extensions #693
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
console.shThe problem was: when calling the console with anargument which contains spaces, these were removed by the shell script, for example:
did not work, as the space between
loadandtestwas automatically removed. 986fcc0 fixes this.Console.javaCalling a script from the shell can result in hanging of the console. This is fixed by forcing an
exitcommand at the end of a non-interactive session. fb500e2 fixes this.Console.javaEntering multiple whitespaces in the console prompt results in an (SQL) error. To fix this the
trimof the currently parsed line is moved out of theifblock deciding if a command is empty, so a white-sapce only command is skipped.f044e85 fixes this.
Console.javaI added a comment "command" which is introduced by
--. This is useful for longer scripts. 5f2d4b9 adds this.Console.javaI updated the help message to the current state. 3d41636 does that.
Motivation
All these changes result from loading a script via console.
Related issues
#611
Additional Notes
Anything else we should know when reviewing?
Checklist
mvn clean packagecommand (up to and including theconsolestep tests pass)