diff --git a/DOCS/man/input.rst b/DOCS/man/input.rst index 8a8b7c11b2..c7ed0375b0 100644 --- a/DOCS/man/input.rst +++ b/DOCS/man/input.rst @@ -1355,7 +1355,7 @@ Execution Commands :: local r = mp.command_native({ - name = "subprocess", + _name = "subprocess", playback_only = false, capture_stdout = true, args = {"cat", "/proc/cpuinfo"}, diff --git a/DOCS/man/lua.rst b/DOCS/man/lua.rst index b02ba3c197..73717a4940 100644 --- a/DOCS/man/lua.rst +++ b/DOCS/man/lua.rst @@ -849,7 +849,7 @@ strictly part of the guaranteed API. - rename ``cancellable`` field to ``playback_only`` - rename ``max_size`` to ``capture_size`` - set ``capture_stdout`` field to ``true`` if unset - - set ``name`` field to ``subprocess`` + - set ``_name`` field to ``subprocess`` - call ``mp.command_native(copied_t)`` - if the command failed, create a dummy result table - copy ``error_string`` to ``error`` field if the string is non-empty