Debian Codegraph @

lang/interpret_test/TestAstFunc2/send-recv-2.txtar

raw
1 -- main.mcl --
2 exec ["exec0", "exec1",] {
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 two senders cannot send to the same receiver key
12 Exec[["exec0", "exec1",]].output -> File["/tmp/command-output"].content
13 -- OUTPUT --
14 # err: errInterpret: resource: `file[/tmp/command-output]` has duplicate receive on: `content` param