spec test index / oilshell.org
case | dash | bash | mksh | zsh | osh | osh-byterun | description |
0 | pass | pass | pass | pass | FAIL | FAIL | basic alias |
details | details | ||||||
1 | pass | pass | pass | pass | FAIL | FAIL | alias with trailing space causes second alias expansion |
details | details | ||||||
2 | pass | pass | pass | pass | FAIL | FAIL | iterative alias expansion of first word |
details | details | ||||||
3 | pass | pass | pass | pass | FAIL | FAIL | expansion of alias with value |
details | details | ||||||
4 | BUG | pass | pass | pass | FAIL | FAIL | first and second word are the same |
details | details | details | |||||
5 | pass | pass | pass | pass | FAIL | FAIL | first and second word are the same with trailing space |
details | details | ||||||
6 | pass | pass | pass | pass | FAIL | FAIL | defining multiple aliases, then unalias |
details | details | ||||||
7 | pass | pass | pass | pass | pass | pass | Invalid syntax of alias |
8 | pass | pass | pass | pass | FAIL | FAIL | Dynamic alias definition |
details | details | ||||||
9 | pass | pass | pass | pass | FAIL | FAIL | Alias detection happens before expansion |
details | details | ||||||
10 | pass | pass | pass | pass | FAIL | FAIL | Alias name with punctuation |
details | details |
45 passed, 0 ok, 0 known unimplemented, 1 known bugs, 10 failed, 0 skipped
osh | 0 basic alias [osh stdout] Expected 'hello world\nhi\n', got 'hi\n' stdout: histderr: usage error: Invalid option 'expand_aliases' Unexpected error in execvpe('alias', ['alias', 'hi=echo hello world'], ...): [Errno 2] No such file or directory Unexpected error in execvpe('hi', ['hi'], ...): [Errno 2] No such file or directory |
osh-byterun | 0 basic alias [osh-byterun stdout] Expected 'hello world\nhi\n', got 'hi\n' stdout: histderr: usage error: Invalid option 'expand_aliases' Unexpected error in execvpe('alias', ['alias', 'hi=echo hello world'], ...): [Errno 2] No such file or directory Unexpected error in execvpe('hi', ['hi'], ...): [Errno 2] No such file or directory |
osh | 1 alias with trailing space causes second alias expansion [osh stdout] Expected 'hello world !!!\nhello world punct\n', got '' [osh status] Expected 0, got 127 stdout: stderr: usage error: Invalid option 'expand_aliases' Unexpected error in execvpe('alias', ['alias', 'hi=echo hello world'], ...): [Errno 2] No such file or directory Unexpected error in execvpe('alias', ['alias', 'punct=!!!'], ...): [Errno 2] No such file or directory Unexpected error in execvpe('hi', ['hi', 'punct'], ...): [Errno 2] No such file or directory Unexpected error in execvpe('alias', ['alias', 'hi=echo hello world'], ...): [Errno 2] No such file or directory Unexpected error in execvpe('hi', ['hi', 'punct'], ...): [Errno 2] No such file or directory |
osh-byterun | 1 alias with trailing space causes second alias expansion [osh-byterun stdout] Expected 'hello world !!!\nhello world punct\n', got '' [osh-byterun status] Expected 0, got 127 stdout: stderr: usage error: Invalid option 'expand_aliases' Unexpected error in execvpe('alias', ['alias', 'hi=echo hello world'], ...): [Errno 2] No such file or directory Unexpected error in execvpe('alias', ['alias', 'punct=!!!'], ...): [Errno 2] No such file or directory Unexpected error in execvpe('hi', ['hi', 'punct'], ...): [Errno 2] No such file or directory Unexpected error in execvpe('alias', ['alias', 'hi=echo hello world'], ...): [Errno 2] No such file or directory Unexpected error in execvpe('hi', ['hi', 'punct'], ...): [Errno 2] No such file or directory |
osh | 2 iterative alias expansion of first word [osh stdout] Expected '--\nhello world\n', got '' [osh status] Expected 0, got 127 stdout: stderr: usage error: Invalid option 'expand_aliases' Unexpected error in execvpe('alias', ['alias', 'hi=echo hello world'], ...): [Errno 2] No such file or directory Unexpected error in execvpe('alias', ['alias', 'echo=echo --; echo'], ...): [Errno 2] No such file or directory Unexpected error in execvpe('hi', ['hi'], ...): [Errno 2] No such file or directory |
osh-byterun | 2 iterative alias expansion of first word [osh-byterun stdout] Expected '--\nhello world\n', got '' [osh-byterun status] Expected 0, got 127 stdout: stderr: usage error: Invalid option 'expand_aliases' Unexpected error in execvpe('alias', ['alias', 'hi=echo hello world'], ...): [Errno 2] No such file or directory Unexpected error in execvpe('alias', ['alias', 'echo=echo --; echo'], ...): [Errno 2] No such file or directory Unexpected error in execvpe('hi', ['hi'], ...): [Errno 2] No such file or directory |
osh | 3 expansion of alias with value [osh stdout] Expected 'y hi\n', got '' [osh status] Expected 0, got 127 stdout: stderr: usage error: Invalid option 'expand_aliases' Unexpected error in execvpe('alias', ['alias', 'echo-x=echo $x'], ...): [Errno 2] No such file or directory Unexpected error in execvpe('echo-x', ['echo-x', 'hi'], ...): [Errno 2] No such file or directory |
osh-byterun | 3 expansion of alias with value [osh-byterun stdout] Expected 'y hi\n', got '' [osh-byterun status] Expected 0, got 127 stdout: stderr: usage error: Invalid option 'expand_aliases' Unexpected error in execvpe('alias', ['alias', 'echo-x=echo $x'], ...): [Errno 2] No such file or directory Unexpected error in execvpe('echo-x', ['echo-x', 'hi'], ...): [Errno 2] No such file or directory |
dash | 4 first and second word are the same stdout: x echo xstderr: _tmp/spec-bin/dash: 1: shopt: not found |
osh | 4 first and second word are the same [osh stdout] Expected 'x echo-x\n', got '' [osh status] Expected 0, got 127 stdout: stderr: usage error: Invalid option 'expand_aliases' Unexpected error in execvpe('alias', ['alias', 'echo-x=echo $x'], ...): [Errno 2] No such file or directory Unexpected error in execvpe('echo-x', ['echo-x', 'echo-x'], ...): [Errno 2] No such file or directory |
osh-byterun | 4 first and second word are the same [osh-byterun stdout] Expected 'x echo-x\n', got '' [osh-byterun status] Expected 0, got 127 stdout: stderr: usage error: Invalid option 'expand_aliases' Unexpected error in execvpe('alias', ['alias', 'echo-x=echo $x'], ...): [Errno 2] No such file or directory Unexpected error in execvpe('echo-x', ['echo-x', 'echo-x'], ...): [Errno 2] No such file or directory |
osh | 5 first and second word are the same with trailing space [osh stdout] Expected 'x echo x\n', got '' [osh status] Expected 0, got 127 stdout: stderr: usage error: Invalid option 'expand_aliases' Unexpected error in execvpe('alias', ['alias', 'echo-x=echo $x'], ...): [Errno 2] No such file or directory Unexpected error in execvpe('echo-x', ['echo-x', 'echo-x'], ...): [Errno 2] No such file or directory |
osh-byterun | 5 first and second word are the same with trailing space [osh-byterun stdout] Expected 'x echo x\n', got '' [osh-byterun status] Expected 0, got 127 stdout: stderr: usage error: Invalid option 'expand_aliases' Unexpected error in execvpe('alias', ['alias', 'echo-x=echo $x'], ...): [Errno 2] No such file or directory Unexpected error in execvpe('echo-x', ['echo-x', 'echo-x'], ...): [Errno 2] No such file or directory |
osh | 6 defining multiple aliases, then unalias [osh stdout] Expected 'x X\ny Y\nundefined\nundefined\n', got 'undefined\nundefined\n' stdout: undefined undefinedstderr: usage error: Invalid option 'expand_aliases' Unexpected error in execvpe('alias', ['alias', 'echo-x=echo $x', 'echo-y=echo $y'], ...): [Errno 2] No such file or directory Unexpected error in execvpe('echo-x', ['echo-x', 'X'], ...): [Errno 2] No such file or directory Unexpected error in execvpe('echo-y', ['echo-y', 'Y'], ...): [Errno 2] No such file or directory Unexpected error in execvpe('unalias', ['unalias', 'echo-x', 'echo-y'], ...): [Errno 2] No such file or directory Unexpected error in execvpe('echo-x', ['echo-x', 'X'], ...): [Errno 2] No such file or directory Unexpected error in execvpe('echo-y', ['echo-y', 'Y'], ...): [Errno 2] No such file or directory |
osh-byterun | 6 defining multiple aliases, then unalias [osh-byterun stdout] Expected 'x X\ny Y\nundefined\nundefined\n', got 'undefined\nundefined\n' stdout: undefined undefinedstderr: usage error: Invalid option 'expand_aliases' Unexpected error in execvpe('alias', ['alias', 'echo-x=echo $x', 'echo-y=echo $y'], ...): [Errno 2] No such file or directory Unexpected error in execvpe('echo-x', ['echo-x', 'X'], ...): [Errno 2] No such file or directory Unexpected error in execvpe('echo-y', ['echo-y', 'Y'], ...): [Errno 2] No such file or directory Unexpected error in execvpe('unalias', ['unalias', 'echo-x', 'echo-y'], ...): [Errno 2] No such file or directory Unexpected error in execvpe('echo-x', ['echo-x', 'X'], ...): [Errno 2] No such file or directory Unexpected error in execvpe('echo-y', ['echo-y', 'Y'], ...): [Errno 2] No such file or directory |
osh | 8 Dynamic alias definition [osh stdout] Expected 'X\n', got '' [osh status] Expected 0, got 127 stdout: stderr: usage error: Invalid option 'expand_aliases' Unexpected error in execvpe('alias', ['alias', 'echo_alias_=echo'], ...): [Errno 2] No such file or directory Unexpected error in execvpe('echo_alias_', ['echo_alias_', 'X'], ...): [Errno 2] No such file or directory |
osh-byterun | 8 Dynamic alias definition [osh-byterun stdout] Expected 'X\n', got '' [osh-byterun status] Expected 0, got 127 stdout: stderr: usage error: Invalid option 'expand_aliases' Unexpected error in execvpe('alias', ['alias', 'echo_alias_=echo'], ...): [Errno 2] No such file or directory Unexpected error in execvpe('echo_alias_', ['echo_alias_', 'X'], ...): [Errno 2] No such file or directory |
osh | 9 Alias detection happens before expansion [osh stdout] Expected 'X\nstatus=127\n', got '' [osh status] Expected 0, got 127 stdout: stderr: usage error: Invalid option 'expand_aliases' Unexpected error in execvpe('alias', ['alias', 'echo_alias_=echo'], ...): [Errno 2] No such file or directory Unexpected error in execvpe('echo_alias_', ['echo_alias_', 'X'], ...): [Errno 2] No such file or directory Unexpected error in execvpe('echo_alias_', ['echo_alias_', 'X'], ...): [Errno 2] No such file or directory Unexpected error in execvpe('echo_alias_', ['echo_alias_', 'status=127'], ...): [Errno 2] No such file or directory |
osh-byterun | 9 Alias detection happens before expansion [osh-byterun stdout] Expected 'X\nstatus=127\n', got '' [osh-byterun status] Expected 0, got 127 stdout: stderr: usage error: Invalid option 'expand_aliases' Unexpected error in execvpe('alias', ['alias', 'echo_alias_=echo'], ...): [Errno 2] No such file or directory Unexpected error in execvpe('echo_alias_', ['echo_alias_', 'X'], ...): [Errno 2] No such file or directory Unexpected error in execvpe('echo_alias_', ['echo_alias_', 'X'], ...): [Errno 2] No such file or directory Unexpected error in execvpe('echo_alias_', ['echo_alias_', 'status=127'], ...): [Errno 2] No such file or directory |
osh | 10 Alias name with punctuation [osh stdout] Expected 'X\n', got '' [osh status] Expected 0, got 127 stdout: stderr: usage error: Invalid option 'expand_aliases' Unexpected error in execvpe('alias', ['alias', 'e_.~x=echo'], ...): [Errno 2] No such file or directory Unexpected error in execvpe('e_.~x', ['e_.~x', 'X'], ...): [Errno 2] No such file or directory |
osh-byterun | 10 Alias name with punctuation [osh-byterun stdout] Expected 'X\n', got '' [osh-byterun status] Expected 0, got 127 stdout: stderr: usage error: Invalid option 'expand_aliases' Unexpected error in execvpe('alias', ['alias', 'e_.~x=echo'], ...): [Errno 2] No such file or directory Unexpected error in execvpe('e_.~x', ['e_.~x', 'X'], ...): [Errno 2] No such file or directory |