Permalink
Please sign in to comment.
Showing
with
25 additions
and 0 deletions.
- +19 −0 spec/introspect.test.sh
- +6 −0 test/spec.sh
| @@ -0,0 +1,19 @@ | ||
| #!/usr/bin/env bash | ||
| # | ||
| # TODO: | ||
| # BASH_SOURCE, BASH_LINENO, caller builtin | ||
| ### ${FUNCNAME[@]} array | ||
| f() { | ||
| echo "begin: ${FUNCNAME[@]}" | ||
| g | ||
| echo "end: ${FUNCNAME[@]}" | ||
| } | ||
| g() { | ||
| echo "func: ${FUNCNAME[@]}" | ||
| } | ||
| f | ||
| # stdout-json: "begin: f\nfunc: g f\nend: f\n" | ||
| # N-I mksh stdout-json: "begin: \nfunc: \nend: \n" | ||
| # N-I dash stdout-json: "" | ||
| # N-I dash status: 2 |
0 comments on commit
a5c107a