From b9f2ad6b22fe6808a5cd2a1476172a1131adb3ed Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 12 Jun 2026 10:59:00 -0300 Subject: Accept getopts-style attached -pPROFILE again Via gobang.ExpandBundles("p:", argv), now that it understands optstring value flags: -pp1 expands to -p p1 before stdlib flag parsing, and nothing after "--" is expanded, so the wrapped command's own argv passes through byte-for-byte. signals.sh goes back to its original attached-form invocations, which now double as the compat test. Co-Authored-By: Claude Fable 5 --- src/remembering.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/remembering.go b/src/remembering.go index 8d2a017..f802ffc 100644 --- a/src/remembering.go +++ b/src/remembering.go @@ -14,6 +14,8 @@ import ( "strconv" "strings" "syscall" + + "gobang" ) @@ -250,7 +252,8 @@ func run(env envT) int { flags.SetOutput(env.err) profileName := flags.String("p", "", "") - if flags.Parse(env.allArgs[1:]) != nil { + argv := gobang.ExpandBundles("p:", env.allArgs[1:]) + if flags.Parse(argv) != nil { usage(env.err) return 2 } -- cgit v1.3