Results for var-op-len.test.sh

statusdashbashmkshzshosh
pass 26368
ok 11100
N-I 50400
BUG 12130
FAIL 00001
total99999
casedashbashmkshzshoshdescription
0pass pass pass pass pass String length
1N-I pass N-I pass pass Unicode string length (UTF-8)
detailsdetails
2N-I pass N-I pass pass Unicode string length (spec/testdata/utf8-chars.txt)
detailsdetails
3N-I BUG N-I BUG pass String length with incomplete utf-8
detailsdetailsdetailsdetails
4N-I BUG N-I BUG pass String length with invalid utf-8 continuation bytes
detailsdetailsdetailsdetails
5pass pass pass pass pass Length of undefined variable
6ok pass pass pass pass Length of undefined variable with nounset
details
7BUG ok ok BUG pass Length operator can't be followed by test operator
detailsdetailsdetailsdetails
8N-I pass BUG pass FAIL ${#s} respects LC_ALL - length in bytes or code points
detailsdetailsdetails
25 passed, 3 OK, 9 not implemented, 7 BUG, 1 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

dash1 Unicode string length (UTF-8)

stdout:
9
stderr:
mksh1 Unicode string length (UTF-8)

stdout:
4
stderr:
dash2 Unicode string length (spec/testdata/utf8-chars.txt)

stdout:
13
stderr:
mksh2 Unicode string length (spec/testdata/utf8-chars.txt)

stdout:
13
stderr:
dash3 String length with incomplete utf-8

stdout:
0
1
2
3
4
5
6
7
8
9
10
11
12
13
stderr:
bash3 String length with incomplete utf-8

stdout:
0
1
2
3
3
4
5
6
5
6
7
8
9
7
stderr:
mksh3 String length with incomplete utf-8

stdout:
0
1
2
3
4
5
6
7
8
9
10
11
12
13
stderr:
zsh3 String length with incomplete utf-8

stdout:
0
1
2
3
3
4
5
6
5
6
7
8
9
7
stderr:
dash4 String length with invalid utf-8 continuation bytes

stdout:
7
8
9
10
11
12
13
14
15
16
17
18
19
20
20
stderr:
bash4 String length with invalid utf-8 continuation bytes

stdout:
1
2
3
4
4
5
6
7
6
7
8
9
10
8
8
stderr:
mksh4 String length with invalid utf-8 continuation bytes

stdout:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
14
stderr:
zsh4 String length with invalid utf-8 continuation bytes

stdout:
1
2
3
4
4
5
6
7
6
7
8
9
10
8
8
stderr:
dash6 Length of undefined variable with nounset

stdout:
stderr: 
dash: 2: undef: parameter not set
dash7 Length operator can't be followed by test operator

stdout:
0
0
3
stderr:
bash7 Length operator can't be followed by test operator

stdout:
stderr: 
bash: line 1: ${#x-default}: bad substitution
bash: line 4: ${#x-default}: bad substitution
bash: line 7: ${#x-default}: bad substitution
mksh7 Length operator can't be followed by test operator

stdout:
stderr: 
mksh: <stdin>[1]: ${#x-default}: bad substitution
zsh7 Length operator can't be followed by test operator

stdout:
7
0
3
stderr:
dash8 ${#s} respects LC_ALL - length in bytes or code points

stdout:
stderr: 
mksh8 ${#s} respects LC_ALL - length in bytes or code points

stdout:
len=2
len=2

len=3
len=3

stderr:
osh8 ${#s} respects LC_ALL - length in bytes or code points

[osh stdout] Expected 'len=1\nlen=2\n\nlen=1\nlen=4\n\n' Got 'len=1\nlen=1\n\nlen=1\nlen=1\n\n'

stdout:
len=1
len=1

len=1
len=1

stderr: