mirror-rcaloras-bash-preexec/test
Ryan Caloras 3281b825cb Add release automation script
Add script/release to update the version, run tests, create and push
the release commit and tag, and draft GitHub release notes.

Usage:
  script/release --dry-run 0.7.0
  script/release 0.7.0
  script/release 0.7.0 "Teal Otter"
2026-08-22 22:46:31 -04:00
..
bash-preexec.bats Remove the local declaration of "{preexec,precmd}_functions" (#182) 2026-07-06 06:50:11 +09:00
include-test.bats Don't load if old version already present (Fixes rcaloras/bash-preexec#146) (#150) 2024-01-23 23:56:16 -05:00
README.md Change [[ to [ in tests where possible (#99) 2019-09-07 16:05:29 -04:00
release-script.bats Add release automation script 2026-08-22 22:46:31 -04:00

Testing bash-preexec

Note on test conditions

When writing test conditions, use [ ... ] instead of [[ ... ]] since the former are supported by Bats on Bash versions before 4.1. In particular, macOS uses Bash 3.2, and [[ ... ]] tests always pass on macOS.

In some cases, you may want to use a feature unique to [[ ... ]] such as pattern matching ([[ $name = a* ]]) or regular expressions ([[ $(date) =~ ^Fri\ ...\ 13 ]]). In those cases, use the following pattern to replace “bare” [[ ... ]].

[[ ... ]] || return 1

References: