1 | #!/usr/bin/env bash |
2 | # |
3 | # For spec/introspect.test.sh. |
4 | |
5 | source spec/testdata/bash-source-2.sh |
6 | |
7 | argv() { |
8 | spec/bin/argv.py "$@" |
9 | } |
10 | |
11 | f() { |
12 | argv 'begin F funcs' "${FUNCNAME[@]}" |
13 | argv 'begin F files' "${BASH_SOURCE[@]}" |
14 | argv 'begin F lines' "${BASH_LINENO[@]}" |
15 | g |
16 | argv 'end F funcs' "${FUNCNAME[@]}" |
17 | argv 'end F' "${BASH_SOURCE[@]}" |
18 | argv 'end F lines' "${BASH_LINENO[@]}" |
19 | } |
20 | |
21 | f # call a function it defines |