Results for xtrace.test.sh

statusdashbashmkshoshosh_ALT
pass 4961313
ok 66822
N-I 50100
BUG 11100
FAIL 00011
total1616161616
casedashbashmkshoshosh_ALTdescription
0pass pass pass pass pass unset PS4
1pass ok pass FAIL FAIL set -o verbose prints unevaluated code
detailsdetailsdetails
2N-I ok BUG pass pass xtrace with unprintable chars
detailsdetailsdetails
3N-I pass pass pass pass xtrace with unicode chars
details
4N-I BUG pass pass pass xtrace with tabs
detailsdetails
5BUG ok ok pass pass xtrace with whitespace, quotes, and backslash
detailsdetailsdetails
6N-I ok pass pass pass xtrace with newlines
detailsdetails
7pass pass ok pass pass xtrace written before command executes
details
8ok ok ok pass pass Assignments and assign builtins
detailsdetailsdetails
9N-I ok N-I pass pass [[ ]]
detailsdetailsdetails
10ok pass ok ok ok PS4 is scoped
detailsdetailsdetailsdetails
11ok pass ok ok ok xtrace with variables in PS4
detailsdetailsdetailsdetails
12ok pass ok pass pass PS4 with unterminated ${
detailsdetails
13ok pass ok pass pass PS4 with unterminated $(
detailsdetails
14ok pass ok pass pass PS4 with runtime error
detailsdetails
15pass pass pass pass pass Reading $? in PS4
45 passed, 24 OK, 6 not implemented, 3 BUG, 1 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

bash1 set -o verbose prints unevaluated code

stdout:
foo
bar
stderr:
x=foo
y=bar
echo $x
echo $(echo $y)
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_ALT1 set -o verbose prints unevaluated code

[osh_ALT 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
dash2 xtrace with unprintable chars

stdout:
stderr: 
bash2 xtrace with unprintable chars

stdout:
abc
stderr:
+ echo $'a\003b\004c'
mksh2 xtrace with unprintable chars

stdout:
a;c
stderr:
+ echo $'a;\004c\r'
dash3 xtrace with unicode chars

stdout:
stderr: 
dash4 xtrace with tabs

stdout:
stderr: 
bash4 xtrace with tabs

stdout:
[	]
stderr:
+ echo '[	]'
dash5 xtrace with whitespace, quotes, and backslash

stdout:
1 2 ' " \
stderr:
+ echo 1 2 ' " \
bash5 xtrace with whitespace, quotes, and backslash

stdout:
1 2 ' " \
stderr:
+ echo '1 2' \' '"' '\'
mksh5 xtrace with whitespace, quotes, and backslash

stdout:
1 2 ' " \
stderr:
+ echo '1 2' \' '"' '\'
dash6 xtrace with newlines

stdout:
$[
]
stderr:
+ echo $[\n]
bash6 xtrace with newlines

stdout:
[
]
stderr:
+ echo '[
]'
mksh7 xtrace written before command executes

stdout:
stderr: 
+ >&2 
+ echo one
one
+ >&2 
+ echo two
two
dash8 Assignments and assign builtins

stdout:
2
stderr:
+ x=1 x=2
+ echo 2
+ readonly x=3
bash8 Assignments and assign builtins

stdout:
2
stderr:
+ x=1
+ x=2
+ echo 2
+ readonly x=3
+ x=3
mksh8 Assignments and assign builtins

stdout:
2
stderr:
+ x=1 x=2 
+ echo 2
+ readonly 'x=3'
dash9 [[ ]]

stdout:
stderr: 
bash9 [[ ]]

stdout:
stderr: 
+ dir=/
+ [[ -d / ]]
+ ((  a = 42  ))
mksh9 [[ ]]

stdout:
stderr: 
dash10 PS4 is scoped

stdout:
one
func
two
stderr:
+ echo one
+ f
+ local PS4=- 
- echo func
+ echo two
mksh10 PS4 is scoped

stdout:
one
func
two
stderr:
+ echo one
+ f
+ typeset 'PS4=- '
- echo func
+ echo two
osh10 PS4 is scoped

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

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

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

stdout:
one
two
stderr:
+:x=1 
+1:echo one
+1:x=2 
+2: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_ALT11 xtrace with variables in PS4

stdout:
one
two
stderr:
+1:x=1
+1:echo one
+2:x=2
+2:echo two
dash12 PS4 with unterminated ${

stdout:
stderr: 
dash: 1: Syntax error: Missing '}'
mksh12 PS4 with unterminated ${

stdout:
stderr: 
mksh: no closing quote
dash13 PS4 with unterminated $(

stdout:
stderr: 
dash: 1: Syntax error: end of file unexpected (expecting ")")
mksh13 PS4 with unterminated $(

stdout:
stderr: 
mksh: syntax error: '(' unmatched
dash14 PS4 with runtime error

stdout:
stderr: 
dash: 4: arithmetic expression: division by zero: " 1 / 0 "
mksh14 PS4 with runtime error

stdout:
stderr: 
mksh: <stdin>[4]:  1 / 0 : zero divisor