This is an automated email from the ASF dual-hosted git repository. paulk pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/master by this push: new 5e9b5fa872 GROOVY-8162: Update Groovysh to JLine3 (ignore blank lines during load) 5e9b5fa872 is described below commit 5e9b5fa872f2e8026db830bee703174b3a3cf057 Author: Paul King <pa...@asert.com.au> AuthorDate: Thu Jul 31 13:57:39 2025 +1000 GROOVY-8162: Update Groovysh to JLine3 (ignore blank lines during load) --- .../main/groovy/org/apache/groovy/groovysh/jline/GroovyCommands.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/jline/GroovyCommands.groovy b/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/jline/GroovyCommands.groovy index ff8d565ecf..afcb0acd72 100644 --- a/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/jline/GroovyCommands.groovy +++ b/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/jline/GroovyCommands.groovy @@ -342,12 +342,12 @@ class GroovyCommands extends JlineCommandRegistry implements CommandRegistry { } def unprocessed = [] file.readLines().each { line -> + if (!line.trim()) return try { unprocessed << line engine.execute(unprocessed.join('\n')) unprocessed.clear() } catch (Exception ignore) { - // ignore } } println "${merge ? 'Merged' : 'Loaded'}: " + file.path