Hi !
Given this very simple witness script:
<?php
<<<CONFIG
packages:
- "php"
CONFIG;
echo 'Hello World'.PHP_EOL;
I'm unable to redirect the output to a file using standard or error output redirection:
$ melody run hello_world.php > hello.txt
# hello.txt remains empty
Here is the strace output captured by @lyrixx that might help, showing it seems to be properly output on FD1:
16787 write(1, "/tmp/melody/aefded2aec05bb759178"..., 131) = 131
16787 write(1, "\n", 1) = 1
16787 lstat("/tmp/melody/aefded2aec05bb75917826c8787c3c6c24a4ff56cc67f6b6522fe8105cf4bc2c5/vendor/symfony/finder/Comparator/DateComparator.php", {st_mode=S_IFREG|0644, st_size=1465, ...}) = 0
16787 stat("/tmp/melody/aefded2aec05bb75917826c8787c3c6c24a4ff56cc67f6b6522fe8105cf4bc2c5/vendor/symfony/finder/Comparator/DateComparator.php", {st_mode=S_IFREG|0644, st_size=1465, ...}) = 0
16787 write(1, "/tmp/melody/aefded2aec05bb759178"..., 129) = 129
16787 write(1, "\n", 1) = 1
Any hint ?
ping @smaftoul, if by chance you have any idea.