lang/interpret_test/TestAstFunc2/send-recv-1.txtar
raw| 1 | -- main.mcl -- |
| 2 | exec "exec0" { |
| 3 | cmd => "echo whatever", |
| 4 | shell => "/bin/bash", |
| 5 | } |
| 6 | |
| 7 | file "/tmp/command-output" { |
| 8 | state => $const.res.file.state.exists, |
| 9 | } |
| 10 | |
| 11 | # this is an error because the shell send key doesn't exist in exec |
| 12 | Exec["exec0"].shell -> File["/tmp/command-output"].content |
| 13 | -- OUTPUT -- |
| 14 | # err: errUnify: cannot send/recv from exec[exec0].shell to file[/tmp/command-output].content: key not found in send struct |