Results for ysh-bugs.test.sh

statusysh
pass 10
FAIL 3
total13
caseyshdescription
0pass fastlex: NUL byte not allowed inside char literal #' '
1pass fastlex: NUL byte inside shebang line
2pass Tea keywords don't interfere with YSH expressions
3pass Catch AttributeError
4pass Command sub paren parsing bug (#1387)
5pass More Command sub paren parsing
6pass don't execute empty command
7FAIL Do && || with YSH constructs make sense/
details
8pass shvar then replace - bug #1986 context manager crash
9pass Parsing crash - bug #2003
10FAIL proc with IFS= read -r line - dynamic scope - issue #2012
details
11FAIL func call inside proc call - error message attribution
details
12pass Crash in parsing case on EOF condition - issue #2037
10 passed, 0 OK, 0 not implemented, 0 BUG, 3 failed, 0 timeouts, 0 cases skipped
3 failed under osh

Details on runs that didn't PASS

ysh7 Do && || with YSH constructs make sense/

[ysh stdout] Expected '', got '(List) [42]\n(Int) 42\n(Int) 42\n'

stdout:
(List)   [42]
(Int)   42
(Int)   42
stderr:
ysh10 proc with IFS= read -r line - dynamic scope - issue #2012

[ysh stdout] Expected 'zz\nyy\n', got 'zz\n'
[ysh status] Expected 0, got 1

stdout:
zz
stderr:
    write $line
          ^~~~~
[ stdin ]:8: fatal: Undefined variable 'line'
  echo yy | p-ifs
            ^~~~~
[ stdin ]:14: errexit PID 34910: command.Pipeline failed with status 1
ysh11 func call inside proc call - error message attribution

[ysh stdout] Expected '', got ' eval (ident([1,2,3]))\n ^\n[ -c flag ]:11: fatal: Arg 1 should be a Command, got List\n'

stdout:
  eval (ident([1,2,3]))
             ^
[ -c flag ]:11: fatal: Arg 1 should be a Command, got List
stderr: