spec test index / oilshell.org
59 passed, 3 OK, 0 not implemented, 0 BUG, 10 failed, 0 timeouts, 0 cases skipped
osh | 3 Unquoted with array as default value stdout: ['Xx1 2', '3 4xX'] ['Xx1', '2', '3', '4xX']stderr: |
osh_.py | 3 Unquoted with array as default value [osh_.py stdout] Expected "['Xx1 2', '3 4xX']\n['Xx1', '2', '3', '4xX']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py X${unset=x"$@"x}X ^~~~~~~ [ stdin ]:2: 'argv.py' not found argv.py X${unset=x$@x}X # If you want OSH to split, write this ^~~~~~~ [ stdin ]:3: 'argv.py' not found |
osh_.cc | 3 Unquoted with array as default value [osh_.cc stdout] Expected "['Xx1 2', '3 4xX']\n['Xx1', '2', '3', '4xX']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py X${unset=x"$@"x}X ^~~~~~~ [ stdin ]:2: 'argv.py' not found argv.py X${unset=x$@x}X # If you want OSH to split, write this ^~~~~~~ [ stdin ]:3: 'argv.py' not found |
osh | 4 Quoted with array as default value stdout: ['Xx1 2', '3 4xX'] ['Xx1 2 3 4xX']stderr: |
osh_.py | 4 Quoted with array as default value [osh_.py stdout] Expected "['Xx1 2', '3 4xX']\n['Xx1 2 3 4xX']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py "X${unset=x"$@"x}X" ^~~~~~~ [ stdin ]:2: 'argv.py' not found argv.py "X${unset=x$@x}X" # OSH is the same here ^~~~~~~ [ stdin ]:3: 'argv.py' not found |
osh_.cc | 4 Quoted with array as default value [osh_.cc stdout] Expected "['Xx1 2', '3 4xX']\n['Xx1 2 3 4xX']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py "X${unset=x"$@"x}X" ^~~~~~~ [ stdin ]:2: 'argv.py' not found argv.py "X${unset=x$@x}X" # OSH is the same here ^~~~~~~ [ stdin ]:3: 'argv.py' not found |
osh | 5 Assign default with array stdout: ['Xx1 2', '3 4xX'] ['x1 2 3 4x']stderr: |
osh_.py | 5 Assign default with array [osh_.py stdout] Expected "['Xx1 2', '3 4xX']\n['x1 2 3 4x']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py X${unset=x"$@"x}X ^~~~~~~ [ stdin ]:2: 'argv.py' not found argv.py "$unset" ^~~~~~~ [ stdin ]:3: 'argv.py' not found |
osh_.cc | 5 Assign default with array [osh_.cc stdout] Expected "['Xx1 2', '3 4xX']\n['x1 2 3 4x']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py X${unset=x"$@"x}X ^~~~~~~ [ stdin ]:2: 'argv.py' not found argv.py "$unset" ^~~~~~~ [ stdin ]:3: 'argv.py' not found |
osh_.py | 10 "${x+foo}" quoted (regression) [osh_.py stdout] Expected "['', '=', 'set']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py "${with_icc+set}" = set ^~~~~~~ [ stdin ]:1: 'argv.py' not found |
osh_.cc | 10 "${x+foo}" quoted (regression) [osh_.cc stdout] Expected "['', '=', 'set']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py "${with_icc+set}" = set ^~~~~~~ [ stdin ]:1: 'argv.py' not found |
osh_.py | 13 array and - and + [osh_.py stdout] Expected "empty=minus\na1=\na1[0]=\na2= x\na3=3 4\n---\nempty=\na1=plus\na1[0]=plus\na2=plus\na3=plus\n---\nempty=\na1=plus\na2=plus\na3=plus\n---\n['minus']\n[]\n['']\n['plus']\n['']\n['plus']\n['', 'x']\n['plus']\n['3', '4']\n['plus']\n", got 'empty=minus\na1=\na1[0]=\na2= x\na3=3 4\n---\nempty=\na1=plus\na1[0]=plus\na2=plus\na3=plus\n---\nempty=\na1=plus\na2=plus\na3=plus\n---\n' [osh_.py status] Expected 0, got 127 stdout: empty=minus a1= a1[0]= a2= x a3=3 4 --- empty= a1=plus a1[0]=plus a2=plus a3=plus --- empty= a1=plus a2=plus a3=plus ---stderr: argv.py "${empty[@]-minus}" ^~~~~~~ [ stdin ]:24: 'argv.py' not found argv.py "${empty[@]+plus}" ^~~~~~~ [ stdin ]:25: 'argv.py' not found argv.py "${a1[@]-minus}" ^~~~~~~ [ stdin ]:26: 'argv.py' not found argv.py "${a1[@]+plus}" ^~~~~~~ [ stdin ]:27: 'argv.py' not found argv.py "${a1[0]-minus}" ^~~~~~~ [ stdin ]:28: 'argv.py' not found argv.py "${a1[0]+plus}" ^~~~~~~ [ stdin ]:29: 'argv.py' not found argv.py "${a2[@]-minus}" ^~~~~~~ [ stdin ]:30: 'argv.py' not found argv.py "${a2[@]+plus}" ^~~~~~~ [ stdin ]:31: 'argv.py' not found argv.py "${a3[@]-minus}" ^~~~~~~ [ stdin ]:32: 'argv.py' not found argv.py "${a3[@]+plus}" ^~~~~~~ [ stdin ]:33: 'argv.py' not found |
osh_.cc | 13 array and - and + [osh_.cc stdout] Expected "empty=minus\na1=\na1[0]=\na2= x\na3=3 4\n---\nempty=\na1=plus\na1[0]=plus\na2=plus\na3=plus\n---\nempty=\na1=plus\na2=plus\na3=plus\n---\n['minus']\n[]\n['']\n['plus']\n['']\n['plus']\n['', 'x']\n['plus']\n['3', '4']\n['plus']\n", got 'empty=minus\na1=\na1[0]=\na2= x\na3=3 4\n---\nempty=\na1=plus\na1[0]=plus\na2=plus\na3=plus\n---\nempty=\na1=plus\na2=plus\na3=plus\n---\n' [osh_.cc status] Expected 0, got 127 stdout: empty=minus a1= a1[0]= a2= x a3=3 4 --- empty= a1=plus a1[0]=plus a2=plus a3=plus --- empty= a1=plus a2=plus a3=plus ---stderr: argv.py "${empty[@]-minus}" ^~~~~~~ [ stdin ]:24: 'argv.py' not found argv.py "${empty[@]+plus}" ^~~~~~~ [ stdin ]:25: 'argv.py' not found argv.py "${a1[@]-minus}" ^~~~~~~ [ stdin ]:26: 'argv.py' not found argv.py "${a1[@]+plus}" ^~~~~~~ [ stdin ]:27: 'argv.py' not found argv.py "${a1[0]-minus}" ^~~~~~~ [ stdin ]:28: 'argv.py' not found argv.py "${a1[0]+plus}" ^~~~~~~ [ stdin ]:29: 'argv.py' not found argv.py "${a2[@]-minus}" ^~~~~~~ [ stdin ]:30: 'argv.py' not found argv.py "${a2[@]+plus}" ^~~~~~~ [ stdin ]:31: 'argv.py' not found argv.py "${a3[@]-minus}" ^~~~~~~ [ stdin ]:32: 'argv.py' not found argv.py "${a3[@]+plus}" ^~~~~~~ [ stdin ]:33: 'argv.py' not found |