spec test index / oilshell.org
status | dash | bash | mksh | zsh | ash | osh | |
pass | 18 | 43 | 35 | 33 | 34 | 44 | |
ok | 1 | 1 | 1 | 1 | 0 | 0 | |
N-I | 19 | 0 | 2 | 4 | 5 | 0 | |
BUG | 6 | 0 | 6 | 6 | 5 | 0 | |
total | 44 | 44 | 44 | 44 | 44 | 44 | |
case | dash | bash | mksh | zsh | ash | osh | description |
0 | pass | pass | pass | BUG | pass | pass | echo dashes |
details | |||||||
1 | BUG | pass | BUG | BUG | pass | pass | echo backslashes |
details | details | details | |||||
2 | N-I | pass | pass | pass | pass | pass | echo -e backslashes |
details | |||||||
3 | N-I | pass | pass | pass | pass | pass | echo -en |
details | |||||||
4 | ok | pass | ok | ok | pass | pass | echo -ez (invalid flag) |
details | details | details | |||||
5 | pass | pass | pass | pass | pass | pass | echo -e with embedded newline |
6 | pass | pass | pass | pass | pass | pass | echo -e line continuation |
7 | N-I | pass | pass | pass | pass | pass | echo -e with C escapes |
details | |||||||
8 | N-I | pass | pass | pass | pass | pass | echo -e with whitespace C escapes |
details | |||||||
9 | BUG | pass | pass | pass | pass | pass | \0 |
details | |||||||
10 | pass | pass | N-I | pass | pass | pass | \c stops processing input |
details | |||||||
11 | N-I | pass | pass | pass | pass | pass | echo -e with hex escape |
details | |||||||
12 | pass | pass | pass | pass | pass | pass | echo -e with octal escape |
13 | N-I | pass | pass | pass | N-I | pass | echo -e with 4 digit unicode escape |
details | details | ||||||
14 | N-I | pass | pass | pass | N-I | pass | echo -e with 8 digit unicode escape |
details | details | ||||||
15 | N-I | pass | pass | pass | pass | pass | \0377 is the highest octal byte |
details | |||||||
16 | N-I | pass | pass | pass | BUG | pass | \0400 is one more than the highest octal byte |
details | details | ||||||
17 | pass | pass | BUG | pass | BUG | pass | \0777 is out of range |
details | details | ||||||
18 | N-I | pass | pass | pass | pass | pass | incomplete hex escape |
details | |||||||
19 | N-I | pass | BUG | BUG | pass | pass | \x |
details | details | details | |||||
20 | pass | pass | pass | pass | pass | pass | incomplete octal escape |
21 | N-I | pass | pass | pass | BUG | pass | incomplete unicode escape |
details | details | ||||||
22 | N-I | pass | pass | pass | N-I | pass | \u6 |
details | details | ||||||
23 | BUG | pass | pass | pass | BUG | pass | \0 \1 \8 |
details | details | ||||||
24 | pass | pass | pass | pass | pass | pass | Read builtin |
25 | pass | pass | pass | pass | pass | pass | Read from empty file |
26 | pass | pass | pass | pass | pass | pass | Read builtin with no newline. |
27 | BUG | pass | pass | pass | pass | pass | Read builtin with multiple variables |
details | |||||||
28 | pass | pass | pass | pass | pass | pass | Read builtin with not enough variables |
29 | N-I | pass | pass | N-I | pass | pass | Read -n (with $REPLY) |
details | details | ||||||
30 | N-I | pass | pass | pass | pass | pass | Read uses $REPLY (without -n) |
details | |||||||
31 | pass | pass | pass | pass | pass | pass | read -r ignores backslashes |
32 | pass | pass | BUG | BUG | pass | pass | read -r with other backslash escapes |
details | details | ||||||
33 | N-I | pass | pass | pass | pass | pass | read with line continuation reads multiple physical lines |
details | |||||||
34 | pass | pass | pass | pass | pass | pass | read multiple vars spanning many lines |
35 | BUG | pass | BUG | BUG | pass | pass | read -r with \n |
details | details | details | |||||
36 | N-I | pass | pass | pass | pass | pass | Read with IFS=$'\n' |
details | |||||||
37 | pass | pass | pass | pass | pass | pass | Read multiple lines with IFS=: |
38 | pass | pass | pass | pass | pass | pass | Read with IFS='' |
39 | BUG | pass | BUG | BUG | BUG | pass | Read should not respect C escapes. |
details | details | details | details | ||||
40 | pass | pass | pass | pass | pass | pass | Read builtin uses dynamic scope |
41 | N-I | pass | N-I | N-I | N-I | pass | read -a reads into array |
details | details | details | details | ||||
42 | pass | ok | pass | N-I | pass | pass | read -n with invalid arg |
details | details | ||||||
43 | N-I | pass | pass | N-I | N-I | pass | read returns correct number of bytes without EOF |
details | details | details |
207 passed, 4 OK, 30 not implemented, 23 BUG, 0 failed, 0 timeouts, 0 cases skipped
zsh | 0 echo dashes stdout: -- ---stderr: |
dash | 1 echo backslashes stdout: \ \ \ \stderr: |
mksh | 1 echo backslashes stdout: \ \ \ \stderr: |
zsh | 1 echo backslashes stdout: \ \ \ \stderr: |
dash | 2 echo -e backslashes stdout: -e \ -e \ -e \ -e \stderr: |
dash | 3 echo -en stdout: -en abc defstderr: |
dash | 4 echo -ez (invalid flag) stdout: -ez abcstderr: |
mksh | 4 echo -ez (invalid flag) stdout: -ez abcstderr: |
zsh | 4 echo -ez (invalid flag) stdout: -ez abcstderr: |
dash | 7 echo -e with C escapes stdout: -e \d\estderr: |
dash | 8 echo -e with whitespace C escapes stdout: -estderr: |
dash | 9 \0 stdout: -e abstderr: |
mksh | 10 \c stops processing input stdout: xy abde abdestderr: |
dash | 11 echo -e with hex escape stdout: -e abcd\x65fstderr: |
dash | 13 echo -e with 4 digit unicode escape stdout: abcd\u0065fstderr: |
ash | 13 echo -e with 4 digit unicode escape stdout: abcd\u0065fstderr: |
dash | 14 echo -e with 8 digit unicode escape stdout: abcd\U00000065fstderr: |
ash | 14 echo -e with 8 digit unicode escape stdout: abcd\U00000065fstderr: |
dash | 15 \0377 is the highest octal byte stdout: 2d 65 6e 20 ff 37 0astderr: |
dash | 16 \0400 is one more than the highest octal byte stdout: 2d 65 6e 20stderr: |
ash | 16 \0400 is one more than the highest octal byte stdout: 20 30 30stderr: |
mksh | 17 \0777 is out of range stdout: c3 bfstderr: |
ash | 17 \0777 is out of range stdout: 3f 37stderr: |
dash | 18 incomplete hex escape stdout: - e n a b c d \ x 6 \nstderr: |
dash | 19 \x stdout: - e \ x \ x g \nstderr: |
mksh | 19 \x stdout: \0 \0 g \nstderr: |
zsh | 19 \x stdout: \0 \0 g \nstderr: |
dash | 21 incomplete unicode escape stdout: - e n a b c d \ u 0 0 6 \nstderr: |
ash | 21 incomplete unicode escape stdout: a b c d \ u 0 0 6stderr: |
dash | 22 \u6 stdout: \ u 6stderr: |
ash | 22 \u6 stdout: \ u 6stderr: |
dash | 23 \0 \1 \8 stdout: 001 \ 8stderr: |
ash | 23 \0 \1 \8 stdout: \0 001 \ 8stderr: |
dash | 27 Read builtin with multiple variables stdout: [A/B/C D E ]stderr: |
dash | 29 Read -n (with $REPLY) stdout: []stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 2: read: Illegal option -n /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 3: read: Illegal option -n |
zsh | 29 Read -n (with $REPLY) stdout: []stderr: |
dash | 30 Read uses $REPLY (without -n) stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 2: read: arg count |
mksh | 32 read -r with other backslash escapes stdout: ['one twoethree', 'one\\ twoethree']stderr: |
zsh | 32 read -r with other backslash escapes stdout: ['one twoethree', 'one\\ twoethree']stderr: |
dash | 33 read with line continuation reads multiple physical lines stdout: ['-e onetwo', '-e one\\']stderr: |
dash | 35 read -r with \n stdout: ['', '']stderr: |
mksh | 35 read -r with \n stdout: ['', '']stderr: |
zsh | 35 read -r with \n stdout: ['', '']stderr: |
dash | 36 Read with IFS=$'\n' stdout: [a b c]stderr: |
dash | 39 Read should not respect C escapes. stdout: stderr: |
mksh | 39 Read should not respect C escapes. stdout: d g h e 145 istderr: |
zsh | 39 Read should not respect C escapes. stdout: stderr: |
ash | 39 Read should not respect C escapes. stdout: abcdefghx65 145 istderr: |
dash | 41 read -a reads into array stdout: stderr: |
mksh | 41 read -a reads into array stdout: stderr: |
zsh | 41 read -a reads into array stdout: stderr: |
ash | 41 read -a reads into array stdout: stderr: |
bash | 42 read -n with invalid arg stdout: status=1stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 1: read: not_a_number: invalid number |
zsh | 42 read -n with invalid arg stdout: stderr: |
dash | 43 read returns correct number of bytes without EOF stdout: stderr: |
zsh | 43 read returns correct number of bytes without EOF stdout: stderr: |
ash | 43 read returns correct number of bytes without EOF stdout: stderr: |