Results for ysh-usage.test.sh

statusysh
pass 14
FAIL 1
total15
caseyshdescription
0pass ysh --location-str --location-start-line
1pass ysh --eval
2pass ysh --eval-pure can evaluate funcs and procs
3FAIL ysh --eval-pure can't run impure
details
4pass ysh --eval cannot load file
5pass ysh --eval parse error
6pass ysh --eval runtime error
7pass ysh --eval exit status
8pass ysh --eval respects _this_dir
9pass Multiple ysh --eval values
10pass --debug-file
11pass Filename quoting
12pass shopt --set verbose_errexit
13pass YSH shows options correctly (bug fix)
14pass --tool syntax-tree respects frontend/syntax_abbrev.py
14 passed, 0 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

ysh3 ysh --eval-pure can't run impure

[ysh status] Expected 1, got 127

stdout:
stderr: 
  proc my-proc { echo "my-proc" }
                 ^~~~
pure.ysh:2: Command 'echo' not found in pure mode (OILS-ERR-102)
pure.ysh:2: errexit PID 44414: command.Simple failed with status 127
  $[ENV.SH] --eval-pure pure.ysh --eval-pure impure.ysh -c ''
  ^~
[ stdin ]:9: errexit PID 44411: command.Simple failed with status 127