This is an automated email from the ASF dual-hosted git repository. paulk pushed a commit to branch GROOVY_5_0_X in repository https://gitbox.apache.org/repos/asf/groovy.git
commit 75479d24d942b70b934cf469757d552b13c7a3fe Author: Paul King <pa...@asert.com.au> AuthorDate: Tue Aug 26 22:47:06 2025 +1000 GROOVY-11742: posix commands should support variable assignment (readjust /grep options) --- .../org/apache/groovy/groovysh/jline/GroovyPosixCommands.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/jline/GroovyPosixCommands.java b/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/jline/GroovyPosixCommands.java index 4dbd281a86..1b8bb53019 100644 --- a/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/jline/GroovyPosixCommands.java +++ b/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/jline/GroovyPosixCommands.java @@ -752,8 +752,8 @@ public class GroovyPosixCommands extends PosixCommands { " -x --line-regexp Select only whole lines", " -c --count Only print a count of matching lines per file", " -z --zero When used with -c, don't print a count of zero", - " -h --header Display filename header for each file (defaults to true if multiple files are given)", - " -H --no-filename Do not display filename header", + " -H --with-filename Display filename header for each file (defaults to true if multiple files are given)", + " -h --no-filename Do not display filename header", " --color=WHEN Use markers to distinguish the matching string, may be `always', `never' or `auto'", " -B --before-context=NUM Print NUM lines of leading context before matching lines", " -A --after-context=NUM Print NUM lines of trailing context after matching lines", @@ -832,7 +832,7 @@ public class GroovyPosixCommands extends PosixCommands { } List<NamedInputStream> sources = getSources(context, argv, args); boolean filenameHeader = sources.size() > 1; - if (opt.isSet("header")) { + if (opt.isSet("with-filename")) { filenameHeader = true; } else if (opt.isSet("no-filename")) { filenameHeader = false;