Browse Source

todo: pstree idea

main
pvincent 1 week ago
parent
commit
3d21587026
  1. 1
      bin/bash-back
  2. 4
      useless.sh

1
bin/bash-back

@ -76,6 +76,7 @@ function on_exit {
stack_summary+=("ERROR $code: [$message]") stack_summary+=("ERROR $code: [$message]")
else else
# TODO: if last_error is a detected stacktrace, grab as so # TODO: if last_error is a detected stacktrace, grab as so
# pstree -as $$ => parent contains bash-back?
stack_summary+=("ERROR $code: <undefined>") stack_summary+=("ERROR $code: <undefined>")
fi fi

4
useless.sh

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash-back
function F2 { function F2 {
echo "stdout A" echo "stdout A"
@ -31,7 +31,7 @@ function F3 {
echo start of useless echo start of useless
F3 F3
# lib/utility.bash
lib/utility.bash
# . lib/utility.bash # . lib/utility.bash
# >&2 echo some trace in stderr # >&2 echo some trace in stderr

Loading…
Cancel
Save