2021-05-09 22:11:30 -04:00
|
|
|
==================
|
|
|
|
Shell command
|
|
|
|
==================
|
|
|
|
|
|
|
|
CMD echo "test"
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(source_file
|
|
|
|
(cmd_instruction
|
2021-05-10 20:55:28 -04:00
|
|
|
(shell_command
|
|
|
|
(shell_fragment))))
|
2021-05-09 22:11:30 -04:00
|
|
|
|
|
|
|
==================
|
|
|
|
Shell command multiline
|
|
|
|
==================
|
|
|
|
|
|
|
|
CMD echo "test" \
|
|
|
|
"foo" \
|
|
|
|
bar
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(source_file
|
|
|
|
(cmd_instruction
|
2021-05-10 20:55:28 -04:00
|
|
|
(shell_command
|
|
|
|
(shell_fragment)
|
|
|
|
(line_continuation)
|
|
|
|
(shell_fragment)
|
|
|
|
(line_continuation)
|
|
|
|
(shell_fragment))))
|
2021-05-09 22:11:30 -04:00
|
|
|
|
|
|
|
==================
|
|
|
|
Run with shell empty array
|
|
|
|
==================
|
|
|
|
|
|
|
|
cmd []
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(source_file
|
|
|
|
(cmd_instruction
|
2023-06-22 22:44:07 -04:00
|
|
|
(json_string_array)))
|
2021-05-09 22:11:30 -04:00
|
|
|
|
|
|
|
==================
|
|
|
|
Run with shell array
|
|
|
|
==================
|
|
|
|
|
|
|
|
cmd ["echo", "test"]
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(source_file
|
2023-06-22 22:44:07 -04:00
|
|
|
(cmd_instruction
|
|
|
|
(json_string_array
|
|
|
|
(json_string)
|
|
|
|
(json_string))))
|
2021-05-09 22:11:30 -04:00
|
|
|
|