Skip to content

Commit

Permalink
[spec/introspect] Failing test case for $((BASH_LINENO)).
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Apr 23, 2020
1 parent f31a52f commit 9fc20e7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion spec/introspect.test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ ____
## END


#### ${FUNCNAME} with prefix/suffix operators (OSH regression)
#### ${FUNCNAME} with prefix/suffix operators
shopt -s compat_array

check() {
Expand Down Expand Up @@ -181,6 +181,13 @@ argv.py "$FUNCNAME"
## status: 1
## stdout-json: ""

#### $((BASH_LINENO)) (scalar form in arith)
check() {
echo $((BASH_LINENO))
}
check
## stdout: 4

#### ${BASH_SOURCE[@]} with source and function name
argv.py "${BASH_SOURCE[@]}"
source spec/testdata/bash-source-simple.sh
Expand Down

0 comments on commit 9fc20e7

Please sign in to comment.