Opened 8 years ago
Closed 8 years ago
#27600 closed New feature (fixed)
Support reading commands from stdin in shell command
Reported by: | James Pic | Owned by: | nobody |
---|---|---|---|
Component: | Core (Management commands) | Version: | 1.10 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Currently, it's possible to inject code via stdin into the shell command, but it doesn't work very well because it outputs the python prompt and garbles both input and output.
This ticket proposes to properly read commands from stdin in the shell command.
Change History (4)
comment:1 by , 8 years ago
Component: | Uncategorized → Core (Management commands) |
---|---|
Has patch: | set |
Type: | Uncategorized → New feature |
comment:2 by , 8 years ago
Thanks a heap Tim !
I changed the patch so that there's no extra argument to pass, it will read from standard input automatically if there's anything and otherwise go on as usual, exactly like the python CLI itself.
comment:3 by , 8 years ago
Triage Stage: | Unreviewed → Accepted |
---|
Note:
See TracTickets
for help on using tickets.
PR