Results for var-op-other.test.sh

casedashbashmkshoshosh_ALTdescription
0pass pass pass pass pass String length
1pass pass pass pass pass Length of undefined variable
2ok pass pass pass pass Length of undefined variable with nounset
details
3N-I pass pass ok ok Cannot take length of substring slice
detailsdetailsdetails
4N-I pass pass pass pass Pattern replacement
details
5N-I pass BUG pass pass Pattern replacement on unset variable
detailsdetails
6N-I pass pass pass pass Global Pattern replacement with /
details
7N-I pass pass pass pass Left Anchored Pattern replacement with #
details
8N-I pass pass pass pass Right Anchored Pattern replacement with %
details
9N-I pass pass pass pass Replace fixed strings
details
10N-I pass pass pass pass Replace is longest match
details
11N-I pass N-I FAIL FAIL Replace char class
detailsdetailsdetailsdetails
12N-I BUG BUG pass pass Pattern replacement ${v/} is not valid
detailsdetailsdetails
13N-I BUG BUG pass pass Pattern replacement ${v//} is not valid
detailsdetailsdetails
14N-I pass pass pass pass ${v/a} is the same as ${v/a/} -- no replacement string
details
15N-I pass pass pass pass String slice
details
16N-I pass pass pass pass Negative string slice
details
17N-I pass pass pass pass String slice with math
details
18N-I pass BUG FAIL FAIL Slice String with Unicode
detailsdetailsdetailsdetails

65 passed, 3 ok, 17 known unimplemented, 6 known bugs, 2 failed, 0 skipped

Details on runs that didn't PASS

dash2 Length of undefined variable with nounset

stdout:
stderr: 
/bin/dash: 2: undef: parameter not set
dash3 Cannot take length of substring slice

stdout:
5
stderr:
osh3 Cannot take length of substring slice

stdout:
stderr: 
Line 3 of '<stdin>'
  echo ${#v:1:3}
           ^
Expected } after length expression, got (token id:VOp2_Colon val:':' span_id:8)
---
Line 3 of '<stdin>'
  echo ${#v:1:3}
           ^
Error reading command word
---
*** Error has no source location info ***
Error parsing AndOr in ParseCommandTerm
---
osh_ALT3 Cannot take length of substring slice

stdout:
stderr: 
Line 3 of '<stdin>'
  echo ${#v:1:3}
           ^
Expected } after length expression, got (token id:VOp2_Colon val:':' span_id:8)
---
Line 3 of '<stdin>'
  echo ${#v:1:3}
           ^
Error reading command word
---
*** Error has no source location info ***
Error parsing AndOr in ParseCommandTerm
---
dash4 Pattern replacement

stdout:
stderr: 
/bin/dash: 2: Bad substitution
dash5 Pattern replacement on unset variable

stdout:
stderr: 
/bin/dash: 1: Bad substitution
mksh5 Pattern replacement on unset variable

stdout:
[]
status=0
[]
stderr:
dash6 Global Pattern replacement with /

stdout:
stderr: 
/bin/dash: 2: Bad substitution
dash7 Left Anchored Pattern replacement with #

stdout:
stderr: 
/bin/dash: 2: Bad substitution
dash8 Right Anchored Pattern replacement with %

stdout:
stderr: 
/bin/dash: 2: Bad substitution
dash9 Replace fixed strings

stdout:
stderr: 
/bin/dash: 2: Bad substitution
dash10 Replace is longest match

stdout:
stderr: 
/bin/dash: 2: Bad substitution
dash11 Replace char class

stdout:
stderr: 
/bin/dash: 2: Bad substitution
mksh11 Replace char class

stdout:
xx_xx_xx xx_xx_xx
stderr:
osh11 Replace char class

[osh stdout] Expected 'yy_yy_yy xx-xx-xx\n', got ''
[osh status] Expected 0, got 1

stdout:
stderr: 
*** Error has no source location info ***
osh failed: Can't convert glob to regex: '[[:alpha:]]'
osh_ALT11 Replace char class

[osh_ALT stdout] Expected 'yy_yy_yy xx-xx-xx\n', got ''
[osh_ALT status] Expected 0, got 1

stdout:
stderr: 
*** Error has no source location info ***
osh failed: Can't convert glob to regex: '[[:alpha:]]'
dash12 Pattern replacement ${v/} is not valid

stdout:
stderr: 
/bin/dash: 2: Bad substitution
bash12 Pattern replacement ${v/} is not valid

stdout:
-abcde-
status=0
stderr:
mksh12 Pattern replacement ${v/} is not valid

stdout:
-abcde-
status=0
stderr:
dash13 Pattern replacement ${v//} is not valid

stdout:
stderr: 
/bin/dash: 2: Bad substitution
bash13 Pattern replacement ${v//} is not valid

stdout:
-a/b/c-
status=0
stderr:
mksh13 Pattern replacement ${v//} is not valid

stdout:
-a/b/c-
status=0
stderr:
dash14 ${v/a} is the same as ${v/a/} -- no replacement string

stdout:
stderr: 
/bin/dash: 2: Bad substitution
dash15 String slice

stdout:
stderr: 
/bin/dash: 2: Bad substitution
dash16 Negative string slice

stdout:
stderr: 
/bin/dash: 2: Bad substitution
dash17 String slice with math

stdout:
stderr: 
/bin/dash: 3: Bad substitution
dash18 Slice String with Unicode

stdout:
stderr: 
/bin/dash: 2: Bad substitution
mksh18 Slice String with Unicode

stdout:
stderr:
osh18 Slice String with Unicode

[osh stdout] Expected '-\xce\xbc-\n', got '-\xce\xbc\n'

stdout:
stderr:
osh_ALT18 Slice String with Unicode

[osh_ALT stdout] Expected '-\xce\xbc-\n', got '-\xce\xbc\n'

stdout:
stderr: