Results for bugs.test.sh

casedashbashmkshzshashoshdescription
0pass pass pass pass pass pass echo keyword
1pass pass pass pass pass pass if/else
2N-I pass pass pass N-I pass Turn an array into an integer.
detailsdetails
3N-I pass pass pass pass FAIL Nested % and # operators (looks like a bug, reported by Crestwave)
detailsdetails
4ok pass pass pass ok FAIL # operator with single quoted arg (dash/ash and bash/mksh disagree, reported by Crestwave)
detailsdetailsdetails
5N-I pass pass pass BUG ok / operator with single quoted arg (causes syntax error in regex in OSH, reported by Crestwave)
detailsdetailsdetails

26 passed, 3 ok, 4 known unimplemented, 1 known bugs, 2 failed, 0 skipped

Details on runs that didn't PASS

dash2 Turn an array into an integer.

stdout:
stderr: 
_tmp/spec-bin/dash: 1: Syntax error: "(" unexpected
ash2 Turn an array into an integer.

stdout:
stderr: 
_tmp/spec-bin/ash: syntax error: unexpected "("
dash3 Nested % and # operators (looks like a bug, reported by Crestwave)

stdout:
['\\n']
['$\\n']
['$']
['']
['a']
['a']
stderr:
osh3 Nested % and # operators (looks like a bug, reported by Crestwave)

[osh stdout] Expected "['']\n['\\n']\n['\\n']\n['']\n['a']\n['a']\n", got "['']\n['\\n']\n['']\n['']\n['a']\n['']\n"

stdout:
['']
['\n']
['']
['']
['a']
['']
stderr:
dash4 # operator with single quoted arg (dash/ash and bash/mksh disagree, reported by Crestwave)

stdout:
--
-a-
-'a'-
--
stderr:
ash4 # operator with single quoted arg (dash/ash and bash/mksh disagree, reported by Crestwave)

stdout:
--
-a-
-'a'-
--
stderr:
osh4 # operator with single quoted arg (dash/ash and bash/mksh disagree, reported by Crestwave)

[osh stdout] Expected "--\n--\n-'a'-\n-'a'-\n", got "--\n-a-\n-'a'-\n--\n"

stdout:
--
-a-
-'a'-
--
stderr:
dash5 / operator with single quoted arg (causes syntax error in regex in OSH, reported by Crestwave)

stdout:
stderr: 
_tmp/spec-bin/dash: 2: Bad substitution
ash5 / operator with single quoted arg (causes syntax error in regex in OSH, reported by Crestwave)

stdout:
no plus or minus ''''
no plus or minus ++--++--
stderr:
osh5 / operator with single quoted arg (causes syntax error in regex in OSH, reported by Crestwave)

stdout:
no plus or minus ''''
stderr:
  echo no plus or minus "${var//['+-']}"
                              ^
[ stdin ]:3: fatal: Error matching regex "(['+-'])": Invalid regex syntax (func_regex_first_group_match)