./devel/shfmt, Shell formatter with bash support

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 3.11.0, Package name: shfmt-3.11.0, Maintainer: pkgsrc-users

Shfmt is a shell parser, formatter, and interpreter.
It suports POSIX Shell, Bash, and mksh.


Master sites:

Filesize: 226.559 KB

Version history: (Expand)


CVS history: (Expand)


   2025-03-11 15:00:04 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
shfmt: updated to 3.11.0

3.11.0

This release drops support for Go 1.22 and includes many enhancements.

cmd/shfmt
Support -l=0 and -f=0 to split filenames with null bytes
syntax
New iterator API: Parser.WordsSeq
Fix Parser.Incomplete and IsIncomplete to work well with Parser.Words
Initial support for parsing incomplete shell via RecoverErrors
Expand LangError to include which language was used when parsing
interp
Refactor setting variables to fix array declaration edge cases
Fix test read/write/exec operators to work correctly on directories
Replace the cancelreader dependency with os.File.SetReadDeadline
Avoid waiting for process substitutions, matching Bash
Skip OpenHandler when opening named pipes for process substitutions
Use TMPDIR if set via Env to create temporary files such as named pipes
expand
New iterator API: FieldsSeq
Correctly handle repeated backslashes in double quotes
Don't expand backslashes inside here-documents
   2025-03-07 21:54:34 by Benny Siegert | Files touched by this commit (190) | Package updated
Log message:
Revbump all Go packages after go124 update

I realize I forgot to do the revbump after updating the default Go
version to 1.24, so let's do that now.
   2025-01-09 14:27:57 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
shfmt: updated to 3.10.0

3.10.0

cmd/shfmt

Report the correct language variant in parser error messages
Move --filename out of the parser options category

syntax

Parse all CRLF line endings as LF, including inside heredocs
Count skipped backslashes inside backticks in position column numbers
Count skipped null bytes in position column numbers for consistency

interp

Fix a regression in v3.9.0 which broke redirecting files to stdin
Fix a regression in v3.9.0 where HandlerContext.Stdin was never nil
Add an Interactive option to be used by interactive shells
Support closing stdin, stdout, and stderr via redirections like <&-
   2024-09-06 20:49:02 by Benny Siegert | Files touched by this commit (180) | Package updated
Log message:
Revbump all Go packages after go122 update
   2024-08-11 17:57:15 by Benny Siegert | Files touched by this commit (176) | Package updated
Log message:
Revbump all Go packages after update
   2024-07-03 08:59:36 by Benny Siegert | Files touched by this commit (169) | Package updated
Log message:
Revbump all Go packages after go122 security update
   2024-06-13 15:47:13 by Benny Siegert | Files touched by this commit (169) | Package updated
Log message:
Revbump all Go packages after go122 update
   2024-06-01 16:03:06 by Benny Siegert | Files touched by this commit (168)
Log message:
Revbump all Go packages, default Go version is now 1.22.