Shell\Command should support providing standard input to the command. This is one of the main reasons that SyntaxHighlight is using symfony/process.
Description
Description
Details
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Allow programmatic input in Command | mediawiki/core | master | +78 -28 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Declined | None | T172584 Securing external binaries run by MediaWiki | |||
Resolved | Legoktm | T182468 Restrict pygments with firejail | |||
Resolved | Legoktm | T182467 Use Shell\Command in SyntaxHighlight instead of symfony/process | |||
Resolved | Physikerwelt | T155201 Support shelling out to mathoid instead of requiring a full server/restbase setup | |||
Resolved | Tgr | T182463 Shell\Command should support providing standard input |
Event Timeline
Comment Actions
Yes please :)
Also T182467 doesn't strictly depend upon this one because I just used a temporary file instead.
Comment Actions
See https://gerrit.wikimedia.org/r/#/c/372100/5/MathMathMLCli.php for a prototype that supplies stdin to a command (from the PHP perspective this is stdout, thus I called the additional argument stdout).
Comment Actions
Change 399768 had a related patch set uploaded (by Legoktm; owner: Gergő Tisza):
[mediawiki/core@master] Allow programmatic input in Command
Comment Actions
Change 399768 merged by MaxSem:
[mediawiki/core@master] Allow programmatic input in Command