holgerfriedrich opened a new pull request, #2926: URL: https://github.com/apache/karaf/pull/2926
This allows scripts to run a console command and get the full command output. Closing with Strg-D as intended by KARAF-5995 should still be possible. Background: `bin/client -u karaf -p karaf "shell:info" < /dev/null` prints only "Closed" and exits 1 - same in scripts, pipes, CI and cron, and with `-f`. The stdin watcher (KARAF-5995, ctrl-d aborts a command) hits EOF at once and closes thechannel. It now starts only when stdin is a terminal. As a new method was `Console.isTerminal()` was recently introduced in JDK22 and used if available. -- 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]
