stub.sh doesn't work with VAR="$(my_stub)" or my_stub | my_command because appending to the call array updates it in the subshell but not the parent shell.
shypy manages to support this by writing stub calls to a temp file, it seems. That's less efficient than what stub.sh is doing, so maybe this feature should be hidden behind a flag and not default behavior?
stub.shdoesn't work withVAR="$(my_stub)"ormy_stub | my_commandbecause appending to the call array updates it in the subshell but not the parent shell.shypy manages to support this by writing stub calls to a temp file, it seems. That's less efficient than what
stub.shis doing, so maybe this feature should be hidden behind a flag and not default behavior?