Skip to content

Document expected behavior when output of load command is redirected or piped #651

@tleonhardt

Description

@tleonhardt

Given the way that the load command for running simple ASCII-text scripts is implemented, redirecting or piping the output of this command has no effect since each command within this script is appended to an internal command-queue, then the load command finishes and cmd2 resumes its REPL loop and begins running the commands in the queue.

We either need to sufficiently document that this is expected behavior or to make redirection and piping work in this situation.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions