Skip to content

v2.18.2: Fix noclobber compatibility in shell completions

Latest

Choose a tag to compare

@github-actions github-actions released this 01 Mar 22:59
Immutable release. Only release title and notes can be modified.
8dc9747

A small patch release that fixes a compatibility issue with the noclobber shell option. If you had set -o noclobber (or set -C) enabled in bash or zsh, tab completions generated by usage would fail with a "cannot overwrite existing file" error every time the spec cache file already existed. This is now fixed.

Fixed

  • Generated bash and zsh completion scripts now use >| (force-overwrite redirection) instead of > when writing the spec cache file, preventing failures when the shell's noclobber option is enabled. Previously, users with noclobber set would see errors like bash: /tmp/usage__usage_spec_mycli.spec: cannot overwrite existing file on every tab completion. (#524 by @nkakouros)

New Contributors

Full Changelog: v2.18.1...v2.18.2