spec test index / oilshell.org
status | osh | osh_.py | osh_.cc | |
pass | 12 | 11 | 11 | |
ok | 1 | 1 | 1 | |
FAIL | 0 | 1 | 1 | |
total | 13 | 13 | 13 | |
case | osh | osh_.py | osh_.cc | description |
0 | pass | pass | pass | ~ expansion in assignment |
1 | pass | pass | pass | ~ expansion in readonly assignment |
2 | pass | pass | pass | No ~ expansion in dynamic assignment |
3 | pass | pass | pass | No tilde expansion in word that looks like assignment but isn't |
4 | pass | FAIL | FAIL | tilde expansion of word after redirect |
details | details | |||
5 | pass | pass | pass | other user |
6 | pass | pass | pass | ${undef:-~} |
7 | pass | pass | pass | ${x//~/~root} |
8 | pass | pass | pass | x=foo:~ has tilde expansion |
9 | pass | pass | pass | a[x]=foo:~ has tilde expansion |
10 | pass | pass | pass | tilde expansion an assignment keyword |
11 | ok | ok | ok | x=${undef-~:~} |
details | details | details | ||
12 | pass | pass | pass | strict tilde |
34 passed, 3 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped
osh_.py | 4 tilde expansion of word after redirect [osh_.py stdout] Expected '3\n', got '' [osh_.py status] Expected 0, got 127 stdout: stderr: echo hi > ~/tilde1.txt ^ [ stdin ]:2: Can't open '/tilde1.txt': Permission denied cat $HOME/tilde1.txt | wc -c ^~ [ stdin ]:3: 'wc' not found cat: /tilde1.txt: No such file or directory |
osh_.cc | 4 tilde expansion of word after redirect [osh_.cc stdout] Expected '3\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed. |
osh | 11 x=${undef-~:~} stdout: /home/bar:~:~stderr: |
osh_.py | 11 x=${undef-~:~} stdout: /home/bar:~:~stderr: |
osh_.cc | 11 x=${undef-~:~} stdout: /home/bar:~:~stderr: |