Skip to content

Releases: specs-sh/run

v1.3.1 β€’ set -u πŸƒπŸΏβ€β™€οΈ

20 May 23:43
Compare
Choose a tag to compare

v1.3.1

Support for set -u

v1.3.1 adds support for set -u errors as well as any unexpected EXIT from the run command

Before every run, run traps EXIT.

On a caught EXIT during the run invocation...

  1. The temporary files for STDOUT and STDERR are deleted
  2. The STDOUT, STDERR, and EXITCODE variables are set
  3. The STDOUT is echo'd to Standard Output
  4. The STDERR is echo'd to Standard Error <--- this is what usually helps find the set-u error!
  5. The EXIT trap is reset to what it originally was before the run (or cleared if it was not set)
  6. The original EXIT trap code then runs, if any was present

After every run, if it did not EXIT, the EXIT trap is reset to what it was before` (or cleared if it was not set)

v1.3 β€’ {{{{ πŸƒπŸΏβ€β™€οΈ

18 May 02:10
Compare
Choose a tag to compare

Adds support for {{{ and {{{{ and [[[ and [[[[ to help run commands which, themselves, use {{ or [[ etc

  • { [ {{{ [[[ do not run in a subshell
  • {{ [[ {{{{ [[[[ do run in a subshell

v1.2 β€’ --print πŸƒπŸΏβ€β™€οΈ

12 May 17:28
Compare
Choose a tag to compare
  • Adds -p / --print flag which may not be the first argument to run

When provided, --print will print the following to STDOUT (example):

RUN: echo Hello
EXITCODE: 0
STDOUT: 'Hello'
STDERR: ''

Useful for debugging.

v1.1 β€’ Run πŸƒπŸΏβ€β™€οΈ

11 May 22:28
Compare
Choose a tag to compare
  • Remove trace statement from v1 rewrite

v1 β€’ Run πŸƒπŸΏβ€β™€οΈ

11 May 22:17
Compare
Choose a tag to compare

See: #1

  • Fresh new little rewrite ✨
  • set -e compatibility
  • set -u compatibility
  • Removed deprecated bx cruft
  • Switched specs from (unfinished) specs.sh to microspec