Skip to content

v2.31.4

Choose a tag to compare

@github-actions github-actions released this 15 Nov 08:14
· 4 commits to main since this release

Fixes

  • The tcsh alias passes the failed command to go-fuck unchanged. The alias captured the previous command with an unquoted command substitution, so csh split it on blanks and expanded globs before go-fuck saw it:

    • false * reached go-fuck as the listing of the working directory, so the correction was based on the wrong command.
    • Quoted arguments were split into several words, and repeated blanks were collapsed.
    • The final eval received the words separately and could change the command as well.

    The alias now captures the history and the correction inside double quotes and hands the raw command over in TF_HISTORY, the same way the bash and zsh aliases do; the variable is cleared after the run. This also removes the need for an extra shell quoting round trip.

  • The tcsh alias now has a behavior test. It runs a real tcsh in a temporary directory with a stub go-fuck and checks that a glob, double quotes and single quotes arrive unchanged; it fails on the previous alias. The shell integration CI job runs it next to the alias syntax checks.

Verification

  • Full test suite, gofmt, go vet, staticcheck and the rule list check pass.
  • CI is green on Linux, macOS and Windows with lint, the 94% coverage gate and the new tcsh alias test against a real tcsh.
  • The quote round trip tests for bash, zsh, fish and tcsh from the previous release still pass.
  • Distribution manifests are regenerated for 2.31.4 and the AUR package is published as 2.31.4-1.

Upgrade

Homebrew, Scoop and AUR update through their package managers; go install github.com/leafevans/go-fuck/v2/cmd/go-fuck@latest picks up 2.31.4.

Changelog

Full Changelog: v2.31.3...v2.31.4