builtin-bash () { run-file builtin-bash "$@" } run-file () { local spec_name=$1; shift; sh-spec spec/$spec_name.test.sh --compare-shells --oils-bin-dir $PWD/bin "$@" }
spec test index / oilshell.org
| status | bash | osh | |
| pass | 12 | 8 | |
| FAIL | 0 | 4 | |
| total | 12 | 12 | |
| case | bash | osh | description | 
| 0 | pass | pass | help | 
| 1 | pass | pass | bad help topic | 
| 2 | pass | pass | mapfile | 
| 3 | pass | pass | readarray (synonym for mapfile) | 
| 4 | pass | pass | mapfile (array name): arr | 
| 5 | pass | FAIL | mapfile (delimiter): -d delim | 
| details | |||
| 6 | pass | FAIL | mapfile (delimiter): -d '' (null-separated) | 
| details | |||
| 7 | pass | pass | mapfile (truncate delim): -t | 
| 8 | pass | pass | mapfile -t doesn't remove \r | 
| 9 | pass | FAIL | mapfile (store position): -O start | 
| details | |||
| 10 | pass | FAIL | mapfile (input range): -s start -n count | 
| details | |||
| 11 | pass | pass | mapfile / readarray stdin TODO: Fix me. | 
20 passed, 0 OK, 0 not implemented, 0 BUG, 4 failed, 0 timeouts, 0 cases skipped 4 failed under osh
| osh | 5 mapfile (delimiter): -d delim [osh stdout] Expected 'n=3\n[1:]\n[3:]\n[5:]\n', got 'n=0\n[]\n' stdout: n=0 []stderr:     mapfile -d : arr
            ^~
[ stdin ]:3: 'mapfile' doesn't accept flag -d
 | 
| osh | 6 mapfile (delimiter): -d '' (null-separated) [osh stdout] Expected 'n=3\n[1]\n[3]\n[5]\n', got 'n=0\n[]\n' stdout: n=0 []stderr:     mapfile -d '' arr
            ^~
[ stdin ]:3: 'mapfile' doesn't accept flag -d
 | 
| osh | 9 mapfile (store position): -O start [osh stdout] Expected 'n=5\n[x]\n[y]\n[a0]\n[a1]\n[a2]\n', got 'n=3\n[x]\n[y]\n[z]\n' stdout: n=3 [x] [y] [z]stderr:     mapfile -O 2 -t arr
            ^~
[ stdin ]:4: 'mapfile' doesn't accept flag -O
 | 
| osh | 10 mapfile (input range): -s start -n count [osh stdout] Expected 'n=3\n[a5]\n[a6]\n[a7]\n', got 'n=0\n[]\n' stdout: n=0 []stderr:     mapfile -s 5 -n 3 -t arr
            ^~
[ stdin ]:3: 'mapfile' doesn't accept flag -s
 |