41 passed, 3 OK, 9 not implemented, 7 BUG, 30 failed, 0 timeouts, 0 cases skipped 1 failed under osh
dash | 1 Unicode string length (UTF-8) stdout: 9stderr: |
ash | 1 Unicode string length (UTF-8) [ash stdout] Expected '3\n' Got '8\n' stdout: 8stderr: |
mksh | 1 Unicode string length (UTF-8) stdout: 4stderr: |
toysh | 1 Unicode string length (UTF-8) [toysh stdout] Expected '3\n' Got '4\n' stdout: 4stderr: |
brush | 1 Unicode string length (UTF-8) [brush stdout] Expected '3\n' Got '4\n' stdout: 4stderr: |
dash | 2 Unicode string length (spec/testdata/utf8-chars.txt) stdout: 13stderr: |
mksh | 2 Unicode string length (spec/testdata/utf8-chars.txt) stdout: 13stderr: |
ksh | 2 Unicode string length (spec/testdata/utf8-chars.txt) [ksh stdout] Expected '7\n' Got '10\n' stdout: 10stderr: |
toysh | 2 Unicode string length (spec/testdata/utf8-chars.txt) [toysh stdout] Expected '7\n' Got '13\n' stdout: 13stderr: |
brush | 2 Unicode string length (spec/testdata/utf8-chars.txt) [brush stdout] Expected '7\n' Got '13\n' stdout: 13stderr: |
bash | 3 String length with incomplete utf-8 stdout: 0 1 2 3 3 4 5 6 5 6 7 8 9 7stderr: |
dash | 3 String length with incomplete utf-8 stdout: 0 1 2 3 4 5 6 7 8 9 10 11 12 13stderr: |
ash | 3 String length with incomplete utf-8 [ash stdout] Expected '0\n1\n2\n-1\n3\n4\n-1\n-1\n5\n6\n-1\n-1\n-1\n7\n[ stdin ]:3: warning: UTF-8 decode: Truncated bytes at offset 2 in string of 3 bytes\n[ stdin ]:3: warning: UTF-8 decode: Truncated bytes at offset 5 in string of 6 bytes\n[ stdin ]:3: warning: UTF-8 decode: Truncated bytes at offset 5 in string of 7 bytes\n[ stdin ]:3: warning: UTF-8 decode: Truncated bytes at offset 9 in string of 10 bytes\n[ stdin ]:3: warning: UTF-8 decode: Truncated bytes at offset 9 in string of 11 bytes\n[ stdin ]:3: warning: UTF-8 decode: Truncated bytes at offset 9 in string of 12 bytes\n' Got '0\n1\n2\n3\n3\n4\n6\n7\n5\n6\n10\n11\n12\n7\n' stdout: 0 1 2 3 3 4 6 7 5 6 10 11 12 7stderr: |
zsh | 3 String length with incomplete utf-8 stdout: 0 1 2 3 3 4 5 6 5 6 7 8 9 7stderr: |
mksh | 3 String length with incomplete utf-8 stdout: 0 1 2 3 4 5 6 7 8 9 10 11 12 13stderr: |
ksh | 3 String length with incomplete utf-8 [ksh stdout] Expected '0\n1\n2\n-1\n3\n4\n-1\n-1\n5\n6\n-1\n-1\n-1\n7\n[ stdin ]:3: warning: UTF-8 decode: Truncated bytes at offset 2 in string of 3 bytes\n[ stdin ]:3: warning: UTF-8 decode: Truncated bytes at offset 5 in string of 6 bytes\n[ stdin ]:3: warning: UTF-8 decode: Truncated bytes at offset 5 in string of 7 bytes\n[ stdin ]:3: warning: UTF-8 decode: Truncated bytes at offset 9 in string of 10 bytes\n[ stdin ]:3: warning: UTF-8 decode: Truncated bytes at offset 9 in string of 11 bytes\n[ stdin ]:3: warning: UTF-8 decode: Truncated bytes at offset 9 in string of 12 bytes\n' Got '0\n1\n2\n3\n3\n4\n5\n6\n5\n6\n7\n8\n9\n10\n' stdout: 0 1 2 3 3 4 5 6 5 6 7 8 9 10stderr: |
toysh | 3 String length with incomplete utf-8 [toysh stdout] Expected '0\n1\n2\n-1\n3\n4\n-1\n-1\n5\n6\n-1\n-1\n-1\n7\n[ stdin ]:3: warning: UTF-8 decode: Truncated bytes at offset 2 in string of 3 bytes\n[ stdin ]:3: warning: UTF-8 decode: Truncated bytes at offset 5 in string of 6 bytes\n[ stdin ]:3: warning: UTF-8 decode: Truncated bytes at offset 5 in string of 7 bytes\n[ stdin ]:3: warning: UTF-8 decode: Truncated bytes at offset 9 in string of 10 bytes\n[ stdin ]:3: warning: UTF-8 decode: Truncated bytes at offset 9 in string of 11 bytes\n[ stdin ]:3: warning: UTF-8 decode: Truncated bytes at offset 9 in string of 12 bytes\n' Got '0\n1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11\n12\n13\n' stdout: 0 1 2 3 4 5 6 7 8 9 10 11 12 13stderr: |
sush | 3 String length with incomplete utf-8 [sush stdout] Expected '0\n1\n2\n-1\n3\n4\n-1\n-1\n5\n6\n-1\n-1\n-1\n7\n[ stdin ]:3: warning: UTF-8 decode: Truncated bytes at offset 2 in string of 3 bytes\n[ stdin ]:3: warning: UTF-8 decode: Truncated bytes at offset 5 in string of 6 bytes\n[ stdin ]:3: warning: UTF-8 decode: Truncated bytes at offset 5 in string of 7 bytes\n[ stdin ]:3: warning: UTF-8 decode: Truncated bytes at offset 9 in string of 10 bytes\n[ stdin ]:3: warning: UTF-8 decode: Truncated bytes at offset 9 in string of 11 bytes\n[ stdin ]:3: warning: UTF-8 decode: Truncated bytes at offset 9 in string of 12 bytes\n' Got '0\n1\n2\n0\n3\n4\n0\n0\n5\n6\n0\n0\n0\n7\n' stdout: 0 1 2 0 3 4 0 0 5 6 0 0 0 7stderr: |
brush | 3 String length with incomplete utf-8 [brush stdout] Expected '0\n1\n2\n-1\n3\n4\n-1\n-1\n5\n6\n-1\n-1\n-1\n7\n[ stdin ]:3: warning: UTF-8 decode: Truncated bytes at offset 2 in string of 3 bytes\n[ stdin ]:3: warning: UTF-8 decode: Truncated bytes at offset 5 in string of 6 bytes\n[ stdin ]:3: warning: UTF-8 decode: Truncated bytes at offset 5 in string of 7 bytes\n[ stdin ]:3: warning: UTF-8 decode: Truncated bytes at offset 9 in string of 10 bytes\n[ stdin ]:3: warning: UTF-8 decode: Truncated bytes at offset 9 in string of 11 bytes\n[ stdin ]:3: warning: UTF-8 decode: Truncated bytes at offset 9 in string of 12 bytes\n' Got '0\n1\n2\n' stdout: 0 1 2stderr: [31mERROR[0m error: i/o error: stream did not contain valid UTF-8 |
bash | 4 String length with invalid utf-8 continuation bytes stdout: 1 2 3 4 4 5 6 7 6 7 8 9 10 8 8stderr: |
dash | 4 String length with invalid utf-8 continuation bytes stdout: 7 8 9 10 11 12 13 14 15 16 17 18 19 20 20stderr: |
ash | 4 String length with invalid utf-8 continuation bytes [ash stdout] Expected '-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 0 in string of 1 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 1 in string of 2 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 2 in string of 3 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 2 in string of 4 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 4 in string of 5 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 5 in string of 6 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 5 in string of 7 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 5 in string of 8 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 8 in string of 9 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 9 in string of 10 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 9 in string of 11 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 9 in string of 12 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 9 in string of 13 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 13 in string of 14 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 13 in string of 14 bytes\n' Got '1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11\n12\n13\n14\n14\n' stdout: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 14stderr: |
zsh | 4 String length with invalid utf-8 continuation bytes stdout: 1 2 3 4 4 5 6 7 6 7 8 9 10 8 8stderr: |
mksh | 4 String length with invalid utf-8 continuation bytes stdout: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 14stderr: |
ksh | 4 String length with invalid utf-8 continuation bytes [ksh stdout] Expected '-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 0 in string of 1 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 1 in string of 2 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 2 in string of 3 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 2 in string of 4 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 4 in string of 5 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 5 in string of 6 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 5 in string of 7 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 5 in string of 8 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 8 in string of 9 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 9 in string of 10 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 9 in string of 11 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 9 in string of 12 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 9 in string of 13 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 13 in string of 14 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 13 in string of 14 bytes\n' Got '1\n2\n3\n4\n4\n5\n6\n7\n6\n7\n8\n9\n10\n11\n11\n' stdout: 1 2 3 4 4 5 6 7 6 7 8 9 10 11 11stderr: |
toysh | 4 String length with invalid utf-8 continuation bytes [toysh stdout] Expected '-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 0 in string of 1 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 1 in string of 2 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 2 in string of 3 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 2 in string of 4 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 4 in string of 5 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 5 in string of 6 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 5 in string of 7 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 5 in string of 8 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 8 in string of 9 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 9 in string of 10 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 9 in string of 11 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 9 in string of 12 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 9 in string of 13 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 13 in string of 14 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 13 in string of 14 bytes\n' Got '2\n3\n4\n5\n6\n7\n8\n9\n10\n11\n12\n13\n14\n15\n15\n' stdout: 2 3 4 5 6 7 8 9 10 11 12 13 14 15 15stderr: |
sush | 4 String length with invalid utf-8 continuation bytes [sush stdout] Expected '-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 0 in string of 1 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 1 in string of 2 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 2 in string of 3 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 2 in string of 4 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 4 in string of 5 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 5 in string of 6 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 5 in string of 7 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 5 in string of 8 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 8 in string of 9 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 9 in string of 10 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 9 in string of 11 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 9 in string of 12 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 9 in string of 13 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 13 in string of 14 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 13 in string of 14 bytes\n' Got '0\n1\n2\n0\n3\n4\n0\n0\n5\n6\n0\n0\n0\n7\n7\n' stdout: 0 1 2 0 3 4 0 0 5 6 0 0 0 7 7stderr: |
brush | 4 String length with invalid utf-8 continuation bytes [brush stdout] Expected '-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 0 in string of 1 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 1 in string of 2 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 2 in string of 3 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 2 in string of 4 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 4 in string of 5 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 5 in string of 6 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 5 in string of 7 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 5 in string of 8 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 8 in string of 9 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 9 in string of 10 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 9 in string of 11 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 9 in string of 12 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 9 in string of 13 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 13 in string of 14 bytes\n[ stdin ]:3: warning: UTF-8 decode: Bad encoding at offset 13 in string of 14 bytes\n' Got '3\n4\n5\n' stdout: 3 4 5stderr: [31mERROR[0m error: i/o error: stream did not contain valid UTF-8 |
dash | 6 Length of undefined variable with nounset stdout: stderr: dash: 2: undef: parameter not set |
ash | 6 Length of undefined variable with nounset [ash status] Expected 1 Got 2 stdout: stderr: ash: undef: parameter not set |
toysh | 6 Length of undefined variable with nounset [toysh status] Expected 1 Got 0 stdout: 0stderr: set: bad -o nounset |
sush | 6 Length of undefined variable with nounset [sush status] Expected 1 Got 0 stdout: 0stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: set: nounset: invalid option name |
brush | 6 Length of undefined variable with nounset [brush status] Expected 1 Got 0 stdout: 0stderr: |
bash | 7 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 |
dash | 7 Length operator can't be followed by test operator stdout: 0 0 3stderr: |
zsh | 7 Length operator can't be followed by test operator stdout: 7 0 3stderr: |
mksh | 7 Length operator can't be followed by test operator stdout: stderr: mksh: <stdin>[1]: ${#x-default}: bad substitution |
ksh | 7 Length operator can't be followed by test operator [ksh status] Expected 2 Got 1 stdout: stderr: E: ksh: <stdin>[1]: ${#x-default}: bad substitution |
toysh | 7 Length operator can't be followed by test operator [toysh stdout] Expected u'' Got '0\n0\n3\n' [toysh status] Expected 2 Got 0 stdout: 0 0 3stderr: |
sush | 7 Length operator can't be followed by test operator [sush stdout] Expected u'' Got 'default\n0\n3\n' [sush status] Expected 2 Got 0 stdout: default 0 3stderr: |
brush | 7 Length operator can't be followed by test operator [brush stdout] Expected u'' Got '${#x-default}\n${#x-default}\n${#x-default}\n' [brush status] Expected 2 Got 0 stdout: ${#x-default} ${#x-default} ${#x-default}stderr: |
dash | 8 ${#s} respects LC_ALL - length in bytes or code points stdout: stderr: |
ash | 8 ${#s} respects LC_ALL - length in bytes or code points [ash stdout] Expected 'len=1\nlen=2\n\nlen=1\nlen=4\n\n' Got 'len=6\nlen=6\n\nlen=10\nlen=10\n\n' stdout: len=6 len=6 len=10 len=10stderr: |
mksh | 8 ${#s} respects LC_ALL - length in bytes or code points stdout: len=2 len=2 len=3 len=3stderr: |
ksh | 8 ${#s} respects LC_ALL - length in bytes or code points [ksh stdout] Expected 'len=1\nlen=2\n\nlen=1\nlen=4\n\n' Got 'len=1\nlen=2\n\nlen=1\nlen=3\n\n' stdout: len=1 len=2 len=1 len=3stderr: |
toysh | 8 ${#s} respects LC_ALL - length in bytes or code points [toysh stdout] Expected 'len=1\nlen=2\n\nlen=1\nlen=4\n\n' Got '' [toysh status] Expected 0 Got -6 stdout: stderr: munmap_chunk(): invalid pointer |
sush | 8 ${#s} respects LC_ALL - length in bytes or code points [sush stdout] Expected 'len=1\nlen=2\n\nlen=1\nlen=4\n\n' Got 'len=1\nlen=1\n\nlen=4\nlen=4\n\n' stdout: len=1 len=1 len=4 len=4stderr: |
brush | 8 ${#s} respects LC_ALL - length in bytes or code points [brush stdout] Expected 'len=1\nlen=2\n\nlen=1\nlen=4\n\n' Got 'len=2\nlen=2\n\nlen=4\nlen=4\n\n' stdout: len=2 len=2 len=4 len=4stderr: |
osh | 8 ${#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=1stderr: |