Skip to content

Support subshells #7

Description

@codehearts

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions