Results for xtrace.test.sh

statusoshosh-cpp
pass 1313
ok 22
FAIL 11
total1616
caseoshosh-cppdescription
0pass pass unset PS4
1FAIL FAIL set -o verbose prints unevaluated code
detailsdetails
2pass pass xtrace with unprintable chars
3pass pass xtrace with unicode chars
4pass pass xtrace with tabs
5pass pass xtrace with whitespace, quotes, and backslash
6pass pass xtrace with newlines
7pass pass xtrace written before command executes
8pass pass Assignments and assign builtins
9pass pass [[ ]]
10ok ok PS4 is scoped
detailsdetails
11ok ok xtrace with variables in PS4
detailsdetails
12pass pass PS4 with unterminated ${
13pass pass PS4 with unterminated $(
14pass pass PS4 with runtime error
15pass pass Reading $? in PS4
26 passed, 4 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

osh1 set -o verbose prints unevaluated code

[osh stderr] Expected 'x=foo\ny=bar\necho $x\necho $(echo $y)\n', got 'Warning: set -o verbose not implemented\n'

stdout:
foo
bar
stderr:
Warning: set -o verbose not implemented
osh-cpp1 set -o verbose prints unevaluated code

[osh-cpp stderr] Expected 'x=foo\ny=bar\necho $x\necho $(echo $y)\n', got 'Warning: set -o verbose not implemented\n'

stdout:
foo
bar
stderr:
Warning: set -o verbose not implemented
osh10 PS4 is scoped

stdout:
one
func
two
stderr:
+ echo one
+ f
+ local PS4='- '
- echo func
+ echo two
osh-cpp10 PS4 is scoped

stdout:
one
func
two
stderr:
+ echo one
+ f
+ local PS4='- '
- echo func
+ echo two
osh11 xtrace with variables in PS4

stdout:
one
two
stderr:
+1:x=1
+1:echo one
+2:x=2
+2:echo two
osh-cpp11 xtrace with variables in PS4

stdout:
one
two
stderr:
+1:x=1
+1:echo one
+2:x=2
+2:echo two