Results for assign.test.sh

casedashbashmkshoshdescription
0pass pass pass pass Env value with equals
1pass pass BUG pass Env value using preceding Env binding
details
2pass pass pass pass Env value with two quotes
3pass pass pass FAIL Env value with escaped <
details
4pass pass pass FAIL Escaped = in command name
details
5BUG pass ok FAIL Env binding not allowed before compound command
detailsdetailsdetails
6pass pass pass pass Trying to run keyword 'for'
7pass pass pass pass Empty env binding
8pass pass pass pass Assignment doesn't do word splitting
9pass pass pass pass Assignment doesn't do glob expansion
10ok ok ok pass Env binding in readonly/declare disallowed
detailsdetailsdetails
11pass pass pass pass Dependent export setting

39 passed, 4 ok, 0 known unimplemented, 2 known bugs, 3 failed, 0 skipped

Details on runs that didn't PASS

mksh1 Env value using preceding Env binding

stdout:
foo
[]
stderr:
osh3 Env value with escaped <

[osh stdout] Expected b'foo<foo\n', got b''

stdout:
stderr: 
Traceback (most recent call last):
  File "bin/osh", line 378, in <module>
    sys.exit(main(sys.argv))
  File "bin/osh", line 368, in main
    return OshMain(main_argv)
  File "bin/osh", line 327, in OshMain
    status, cflow = ex.Execute(node)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 664, in Execute
    more_env = self.ev.EvalEnv(node.more_env)
  File "/home/andy/git/oil/bin/../core/word_eval.py", line 820, in EvalEnv
    ok, val = self.EvalCompoundWord(val)
  File "/home/andy/git/oil/bin/../core/word_eval.py", line 580, in EvalCompoundWord
    ok, val = self.EvalWordPart(p, quoted=False)
  File "/home/andy/git/oil/bin/../core/word_eval.py", line 685, in EvalWordPart
    val = self.token.val
AttributeError: 'NormalEvaluator' object has no attribute 'token'
osh4 Escaped = in command name

[osh stdout] Expected b'HI\n', got b''

stdout:
stderr: 
Traceback (most recent call last):
  File "bin/osh", line 378, in <module>
    sys.exit(main(sys.argv))
  File "bin/osh", line 368, in main
    return OshMain(main_argv)
  File "bin/osh", line 327, in OshMain
    status, cflow = ex.Execute(node)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 659, in Execute
    argv = self.ev.EvalWords(node.words)
  File "/home/andy/git/oil/bin/../core/word_eval.py", line 791, in EvalWords
    ok, val = self.EvalCompoundWord(w, ifs=ifs, do_glob=do_glob)
  File "/home/andy/git/oil/bin/../core/word_eval.py", line 580, in EvalCompoundWord
    ok, val = self.EvalWordPart(p, quoted=False)
  File "/home/andy/git/oil/bin/../core/word_eval.py", line 685, in EvalWordPart
    val = self.token.val
AttributeError: 'NormalEvaluator' object has no attribute 'token'
dash5 Env binding not allowed before compound command

stdout:
stderr: 
/bin/dash: 1: for: not found
mksh5 Env binding not allowed before compound command

stdout:
stderr: 
/bin/mksh: <stdin>[1]: syntax error: 'do' unexpected
osh5 Env binding not allowed before compound command

[osh status] Expected 2, got 127

stdout:
stderr: 
Unexpected error in execvpe('for', ['for', 'i', 'in', 'a', 'b'], ...): [Errno 2] No such file or directory: b'/home/andy/bin/for'
dash10 Env binding in readonly/declare disallowed

stdout:
v=None
stderr:
bash10 Env binding in readonly/declare disallowed

stdout:
v=None
stderr:
mksh10 Env binding in readonly/declare disallowed

stdout:
v=None
stderr: