spec test index / oilshell.org
38 passed, 0 OK, 0 not implemented, 0 BUG, 5 failed, 0 timeouts, 0 cases skipped 5 failed under osh
osh | 0 GetValue scope and shopt --unset dynamic_scope [osh stdout] Expected 'sh x=dynamic\noil x=global\nsh x=global\nx=global\n' Got 'sh x=dynamic\nsh x=global\nx=global\n' stdout: sh x=dynamic sh x=global x=globalstderr: p ^ [ stdin ]:14: 'p' not found (OILS-ERR-100) |
osh_ALT | 0 GetValue scope and shopt --unset dynamic_scope [osh_ALT stdout] Expected 'sh x=dynamic\noil x=global\nsh x=global\nx=global\n' Got 'sh x=dynamic\nsh x=global\nx=global\n' stdout: sh x=dynamic sh x=global x=globalstderr: p ^ [ stdin ]:14: 'p' not found (OILS-ERR-100) |
osh | 15 unset composes when you turn on dynamic scope [osh stdout] Expected 'x=X y=Y\nx= y=\n', got 'x=X y=Y\n' [osh status] Expected 0, got 127 stdout: x=X y=Ystderr: unset-two x y ^~~~~~~~~ [ stdin ]:16: 'unset-two' not found (OILS-ERR-100) [ stdin ]:16: errexit PID 36039: command.Simple failed with status 127 |
osh_ALT | 15 unset composes when you turn on dynamic scope [osh_ALT stdout] Expected 'x=X y=Y\nx= y=\n', got 'x=X y=Y\n' [osh_ALT status] Expected 0, got 127 stdout: x=X y=Ystderr: unset-two x y ^~~~~~~~~ [ stdin ]:16: 'unset-two' not found (OILS-ERR-100) [ stdin ]:16: errexit PID 36042: command.Simple failed with status 127 |
osh | 16 Temp Bindings [osh stdout] Expected 'myfunc FOO=bar\nmyproc FOO=\ninline FOO=\nbar\n' Got 'myfunc FOO=bar\ninline FOO=\nbar\n' stdout: myfunc FOO=bar inline FOO= barstderr: FOO=bar myproc ^~~~~~ [ stdin ]:11: 'myproc' not found (OILS-ERR-100) |
osh_ALT | 16 Temp Bindings [osh_ALT stdout] Expected 'myfunc FOO=bar\nmyproc FOO=\ninline FOO=\nbar\n' Got 'myfunc FOO=bar\ninline FOO=\nbar\n' stdout: myfunc FOO=bar inline FOO= barstderr: FOO=bar myproc ^~~~~~ [ stdin ]:11: 'myproc' not found (OILS-ERR-100) |
osh | 18 IFS=: myproc exports when it doesn't need to [osh stdout] Expected ":\n 20 09 0a 0a\nIFS= z\nmyfunc IFS= x\n['', 'z', 'z', 'z']\nmyproc IFS= z\n['', 'z', 'z', 'z']\nmyproc IFS= x\n['', 'z', 'z', 'z']\n" Got ":\n 20 09 0a 0a\nIFS= z\nmyfunc IFS= x\n['', 'z', 'z', 'z']\nmyproc IFS= x\n['', 'z', 'z', 'z']\n" stdout: : 20 09 0a 0a IFS= z myfunc IFS= x ['', 'z', 'z', 'z'] myproc IFS= x ['', 'z', 'z', 'z']stderr: IFS=' x' myproc ^~~~~~ [ stdin ]:26: 'myproc' not found (OILS-ERR-100) |
osh_ALT | 18 IFS=: myproc exports when it doesn't need to [osh_ALT stdout] Expected ":\n 20 09 0a 0a\nIFS= z\nmyfunc IFS= x\n['', 'z', 'z', 'z']\nmyproc IFS= z\n['', 'z', 'z', 'z']\nmyproc IFS= x\n['', 'z', 'z', 'z']\n" Got ":\n 20 09 0a 0a\nIFS= z\nmyfunc IFS= x\n['', 'z', 'z', 'z']\nmyproc IFS= x\n['', 'z', 'z', 'z']\n" stdout: : 20 09 0a 0a IFS= z myfunc IFS= x ['', 'z', 'z', 'z'] myproc IFS= x ['', 'z', 'z', 'z']stderr: IFS=' x' myproc ^~~~~~ [ stdin ]:26: 'myproc' not found (OILS-ERR-100) |
osh | 23 shvarGet() [osh stdout] Expected "wrong IFS=x\nshvar IFS=z\n['x', 'x ', 'x']\nnull\n" Got 'null\n' stdout: nullstderr: IFS=z myproc ^~~~~~ [ stdin ]:12: 'myproc' not found (OILS-ERR-100) |
osh_ALT | 23 shvarGet() [osh_ALT stdout] Expected "wrong IFS=x\nshvar IFS=z\n['x', 'x ', 'x']\nnull\n" Got 'null\n' stdout: nullstderr: IFS=z myproc ^~~~~~ [ stdin ]:12: 'myproc' not found (OILS-ERR-100) |