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
trap
s EXIT
.
On a caught EXIT
during the run
invocation...
- The temporary files for
STDOUT
andSTDERR
are deleted - The
STDOUT
,STDERR
, andEXITCODE
variables are set - The
STDOUT
isecho
'd to Standard Output - The
STDERR
isecho
'd to Standard Error <--- this is what usually helps find theset-u
error! - The
EXIT
trap
is reset to what it originally was before therun
(or cleared if it was not set) - 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 β’ {{{{ ππΏββοΈ
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
/--print
flag 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 -e
compatibilityset -u
compatibility- Removed deprecated
bx
cruft - Switched specs from (unfinished)
specs.sh
tomicrospec