Unexpected warning when launching REAL in batch mode inside shell script
Summary
Launching REAL in batch mode inside a shell script results in the following message:
WARNING: Unable to create a system terminal, creating a dumb terminal (enable debug logging for more information)
Steps to reproduce
- Create an empty file named R.csv
- Launch REAL and issue the following commands at the prompt:
.add R(A):R.csv
.save test.json
.quit
- Now launch REAL in Bash or Zsh with the command:
out=$(java -jar real-0.6.1.jar -d test.json -q "R")
Expected result
No output.
Actual result
<timestamp> org.jline.utils.Log logr
WARNING: Unable to create a system terminal, creating a dumb terminal (enable debug logging for more information)
Possible fixes
Do not attempt to create a JLine terminal (and associated LineReader) in batch mode.
Additional information
OS | macOS Monterey & 12.5.1 |
Java | java 12.0.2 2019-07-16 |
real | 0.6.1 |