
.shrc doesn't work
ProgramCrafter opened this issue ยท 2 comments
Putting any programs in .shrc file leads to following error:
This bug is related to c9530ae:
- .shrc file is executed by source.lua,
- which starts a shell process and tells it to continue with environment and the shell command
- but shell after c9530ae does not expect environment as its argument and passes it to /lib/sh.lua itself,
- and that creates an error.
Possible way to fix: replace https://github.com/MightyPirates/OpenComputers/blob/master-MC1.7.10/src/main/resources/assets/opencomputers/loot/openos/bin/source.lua#L33 with process.internal.continue(source_proc, line)
.
Related to #3548