- Update to version 3.12.0:
* CHANGELOG: add entry for v3.12.0
* README.md: add another example to caveats
* interp: add HandlerContext.Builtin
* interp: add test cases with exit inside a process substitution
* interp: add HandlerContext.Pos
* interp: swap math/rand for math/rand/v2
* interp: add exitStatus.ok for `code == 0` comparisons
* interp: move oneIf under exitStatus
* interp: export IsBuiltin
* interp: refactor builtins to return an exitStatus
* interp: remove Runner.exitShell
* interp: simplify trapping on error
* interp: reduce the size of exitStatus
* interp: convert strings to integers as int64
* interp: reject return with invalid arguments
* syntax: skip allocating in SplitBraces when there are no braces
* interp: avoid always copying CallExpr.Args to expand aliases
* interp: move Runner.setFatalErr to exitStatus
* interp: forward custom exit status errors when using `wait`
* interp: keep custom exit status errors when using a naked `exit`
* interp: positional parameters are unset when missing
* interp: support reading $RANDOM and $SRANDOM
* interp: add and fix more subshell exit and errexit edge cases
* interp: propagate custom exit status errors in command substitutions
* interp: simplify code with the exitStatus type
* interp: use the Runner.Run context for calls to ReadDirHandlerFunc2
* interp: group "exit status" Runner fields into a type
* interp: add more custom exit error test cases
* interp: simplify returning exit codes in builtinCode (forwarded request 1301138 from alessio.biancalana)
OBS-URL: https://build.opensuse.org/request/show/1301140
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shfmt?expand=0&rev=2
- Update to version 3.12.0:
* CHANGELOG: add entry for v3.12.0
* README.md: add another example to caveats
* interp: add HandlerContext.Builtin
* interp: add test cases with exit inside a process substitution
* interp: add HandlerContext.Pos
* interp: swap math/rand for math/rand/v2
* interp: add exitStatus.ok for `code == 0` comparisons
* interp: move oneIf under exitStatus
* interp: export IsBuiltin
* interp: refactor builtins to return an exitStatus
* interp: remove Runner.exitShell
* interp: simplify trapping on error
* interp: reduce the size of exitStatus
* interp: convert strings to integers as int64
* interp: reject return with invalid arguments
* syntax: skip allocating in SplitBraces when there are no braces
* interp: avoid always copying CallExpr.Args to expand aliases
* interp: move Runner.setFatalErr to exitStatus
* interp: forward custom exit status errors when using `wait`
* interp: keep custom exit status errors when using a naked `exit`
* interp: positional parameters are unset when missing
* interp: support reading $RANDOM and $SRANDOM
* interp: add and fix more subshell exit and errexit edge cases
* interp: propagate custom exit status errors in command substitutions
* interp: simplify code with the exitStatus type
* interp: use the Runner.Run context for calls to ReadDirHandlerFunc2
* interp: group "exit status" Runner fields into a type
* interp: add more custom exit error test cases
* interp: simplify returning exit codes in builtinCode
OBS-URL: https://build.opensuse.org/request/show/1301138
OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/shfmt?expand=0&rev=7
Revise changelog to organize as packaging improvements:
* Add basic %check to execute the binary --help, also --version
since that is an open issue for this package.
* Fix rpmlint warnings to not repeat package name in
summary. This package currently only includes the formatter
binary, not the parser or interpreter. Update the summary and
description to reflect that.
OBS-URL: https://build.opensuse.org/request/show/1100202
OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/shfmt?expand=0&rev=6
- Update to version 3.7.0:
* prepare for v3.7.0
* cmd/shfmt: bump Dockerfile image versions
* CHANGELOG: start the release notes for v3.7.0
* syntax: stop embedding Pos in error struct types
* all: assume C.UTF-8 is available in the tests
* syntax: treat &> as an error in POSIX mode
* syntax: run "confirm" shell commands in a temp dir
* syntax: don't parse `$foo#bar` as a comment
* all: apply minor suggestions from gopls
* syntax: add TODO about writer methods on Printer
- Add ldflags version info back since --version option always print (devel)
OBS-URL: https://build.opensuse.org/request/show/1100096
OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/shfmt?expand=0&rev=4