spec test index / oilshell.org
status | osh | |
pass | 6 | |
FAIL | 6 | |
total | 12 | |
case | osh | description |
0 | pass | compexport |
1 | pass | compexport with multi-line commands |
2 | pass | redirect completions are quoted |
3 | pass | dir completions have trailing slash |
4 | pass | complete -F strings are not quoted again |
5 | FAIL | complete -W quoting |
details | ||
6 | FAIL | filenames are completed |
details | ||
7 | FAIL | complete both -W and -F: words and functions |
details | ||
8 | FAIL | -o default is an "else action", when zero are shown |
details | ||
9 | pass | git completion space issue (disabled for old git, e.g. v2.17.1) |
10 | FAIL | Complete Filenames with bad characters |
details | ||
11 | FAIL | Complete Command with bad characters |
details |
6 passed, 0 OK, 0 not implemented, 0 BUG, 6 failed, 0 timeouts, 0 cases skipped 6 failed under osh
osh | 5 complete -W quoting [osh stdout] Expected '"q2-argv can\\\\\'t "\n"q2-argv checkout "\n"q2-argv cherry "\n' Got '"q2-argv checkout "\n"q2-argv cherry "\n\n' stdout: "q2-argv checkout " "q2-argv cherry "stderr: osh warning: complete -C not implemented |
osh | 6 filenames are completed [osh stdout] Expected '\nTODO: Is the order reversed? I guess this is file system order, which is\nnondeterministic. YSH can sort them\n\necho baz \necho bar \n' Got '"echo bar "\n"echo baz "\n' stdout: "echo bar " "echo baz "stderr: |
osh | 7 complete both -W and -F: words and functions [osh stdout] Expected 'Hm they are kinda reversed, I want to fix that. This is true even in Python\nthough, weird.\n' Got '"GIT bean "\n"GIT ale "\n"GIT dill "\n"GIT corn "\n' stdout: "GIT bean " "GIT ale " "GIT dill " "GIT corn "stderr: |
osh | 8 -o default is an "else action", when zero are shown [osh stdout] Expected 'TODO\ngit\n', got '-- nothing registered\n"GIT file1 "\n"GIT _tmp/"\n"GIT file2 "\n-- func\n"GIT bar "\n"GIT foo "\n-- func default\n"GIT bar "\n"GIT foo "\n-- empty func default\n"GIT file1 "\n"GIT _tmp/"\n"GIT file2 "\n' stdout: -- nothing registered "GIT file1 " "GIT _tmp/" "GIT file2 " -- func "GIT bar " "GIT foo " -- func default "GIT bar " "GIT foo " -- empty func default "GIT file1 " "GIT _tmp/" "GIT file2 "stderr: |
osh | 10 Complete Filenames with bad characters [osh stdout] Expected 'TODO\n', got '"echo hello "\nb\'echo hi\\yffthere \'\n' stdout: "echo hello " b'echo hi\yffthere 'stderr: |
osh | 11 Complete Command with bad characters [osh stdout] Expected 'TODO\n', got 'b\'echo "bad \\yff byte" foo \'\nb\'echo "bad \\yff byte" fooz \'\n' stdout: b'echo "bad \yff byte" foo ' b'echo "bad \yff byte" fooz 'stderr: |