Releases: specs-sh/run
Releases Β· specs-sh/run
v1.3.1 β’ set -u ππΏββοΈ
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...
- The temporary files for
STDOUTandSTDERRare deleted - The
STDOUT,STDERR, andEXITCODEvariables are set - The
STDOUTisecho'd to Standard Output - The
STDERRisecho'd to Standard Error <--- this is what usually helps find theset-uerror! - The
EXITtrapis reset to what it originally was before therun(or cleared if it was not set) - The original
EXITtrapcode 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 β’ {{{{ ππΏββοΈ
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 ππΏββοΈ
- Adds
-p/--printflag which may not be the first argument torun
When provided, --print will print the following to STDOUT (example):
RUN: echo Hello
EXITCODE: 0
STDOUT: 'Hello'
STDERR: ''Useful for debugging.
v1.1 β’ Run ππΏββοΈ
- Remove trace statement from v1 rewrite
v1 β’ Run ππΏββοΈ
See: #1
- Fresh new little rewrite β¨
set -ecompatibilityset -ucompatibility- Removed deprecated
bxcruft - Switched specs from (unfinished)
specs.shtomicrospec