Results for case_.test.sh

statusdashbashmkshosh
pass 6886
N-I 2000
FAIL 0002
total8888
casedashbashmkshoshdescription
0pass pass pass pass Case statement
1N-I pass pass FAIL Case statement with ;;&
detailsdetails
2N-I pass pass FAIL Case statement with ;&
detailsdetails
3pass pass pass pass Case with empty condition
4pass pass pass pass Match a literal with a glob character
5pass pass pass pass Match a literal with a glob character with a dynamic pattern
6pass pass pass pass Quoted literal in glob pattern
7pass pass pass pass Multiple Patterns Match
28 passed, 0 OK, 2 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped
2 failed under osh

Details on runs that didn't PASS

dash1 Case statement with ;;&

stdout:
stderr: 
/home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 3: Syntax error: newline unexpected (expecting ")")
osh1 Case statement with ;;&

[osh stdout] Expected u'A\nstar\nstar2\n', got ''
[osh status] Expected 0, got 2

stdout:
stderr: 
    a) echo A ;;&
                ^
[ stdin ]:2: Expected word type <Id_t KW_Esac 203>, got <Id_t Op_Amp 40>
dash2 Case statement with ;&

stdout:
stderr: 
/home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 2: Syntax error: "&" unexpected
osh2 Case statement with ;&

[osh stdout] Expected u'A\ntwo\nthree\n', got ''
[osh status] Expected 0, got 2

stdout:
stderr: 
    a) echo A ;&
               ^
[ stdin ]:2: Invalid word while parsing command