History

command: extend subprocess command stdin, change behavior

Make it possible to feed a string to stdin of a subprocess. Out of laziness, it can't be an arbitrary byte string. (Would require adding an option type that takes in a Lua byte string.) Do not set stdin of a subprocess to fd 0 (i.e. mpv's stdin) anymore, because it makes things more consistent. Enabling stdin didn't make too much sense in the first place, so this behavior change seems justifiable. win32 support missing.

wm4 committed 6 years ago

Commit e27c5231 parent d6bf3887 files · +110 −6Browse files

Showing the changes to DOCS/interface-changes.rst (1 of 7 files). Show all

Unified · Split

DOCS/interface-changes.rst+3−0
@@ -74,6 +74,9 @@ Interface changes · 73 unmodified lines
7474 - undeprecate --video-sync=display-adrop
7575 - deprecate legacy auto profiles (profiles starting with "extension." and
7676 "protocol."). Use conditional auto profiles instead.
77+ - the "subprocess" command does not connect spawned processes' stdin to
78+ mpv's stdin anymore. Instead, stdin is connected to /dev/null by default.
79+ To get the old behavior, set the "passthrough_stdin" argument to true.
7780 --- mpv 0.32.0 ---
7881 - change behavior when using legacy option syntax with options that start
7982 with two dashes (``--`` instead of a ``-``). Now, using the recommended

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t