{"action":"created","issue":{"url":"https://api.github.com/repos/mpv-player/mpv/issues/1412","labels_url":"https://api.github.com/repos/mpv-player/mpv/issues/1412/labels{/name}","comments_url":"https://api.github.com/repos/mpv-player/mpv/issues/1412/comments","events_url":"https://api.github.com/repos/mpv-player/mpv/issues/1412/events","html_url":"https://github.com/mpv-player/mpv/issues/1412","id":53225207,"number":1412,"title":"utils.subprocess(t) documentation misleading regarding \"first array entry\"","user":{"login":"lvml","id":9969397,"avatar_url":"https://avatars.githubusercontent.com/u/9969397?v=3","gravatar_id":"","url":"https://api.github.com/users/lvml","html_url":"https://github.com/lvml","followers_url":"https://api.github.com/users/lvml/followers","following_url":"https://api.github.com/users/lvml/following{/other_user}","gists_url":"https://api.github.com/users/lvml/gists{/gist_id}","starred_url":"https://api.github.com/users/lvml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lvml/subscriptions","organizations_url":"https://api.github.com/users/lvml/orgs","repos_url":"https://api.github.com/users/lvml/repos","events_url":"https://api.github.com/users/lvml/events{/privacy}","received_events_url":"https://api.github.com/users/lvml/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-01T18:17:00Z","updated_at":"2015-01-01T18:26:09Z","closed_at":"2015-01-01T18:26:09Z","body":"The documentation of utils.subprocess(t) says:\r\n```\r\n...\r\n        args\r\n            Array of strings. The first array entry is the executable. \r\n```\r\nAs a programmer, I was naturally assuming that something like\r\n```\r\nt = {}\r\nt[\"args\"] = {}\r\nt[\"args\"][0] = \"echo\"\r\nt[\"args\"][1] = \"blabla\"\r\n```\r\nwould work fine as the parameter for utils.subprocess(t) - but it turned out that mpv uses t[\"args\"][1] as the executable name, trying to invoke \"blabla\" instead of \"echo\". \r\nIf that is intended, the documentation shoud be clarified.\r\n"},"comment":{"url":"https://api.github.com/repos/mpv-player/mpv/issues/comments/68493874","html_url":"https://github.com/mpv-player/mpv/issues/1412#issuecomment-68493874","issue_url":"https://api.github.com/repos/mpv-player/mpv/issues/1412","id":68493874,"user":{"login":"wm4","id":1387750,"avatar_url":"https://avatars.githubusercontent.com/u/1387750?v=3","gravatar_id":"","url":"https://api.github.com/users/wm4","html_url":"https://github.com/wm4","followers_url":"https://api.github.com/users/wm4/followers","following_url":"https://api.github.com/users/wm4/following{/other_user}","gists_url":"https://api.github.com/users/wm4/gists{/gist_id}","starred_url":"https://api.github.com/users/wm4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wm4/subscriptions","organizations_url":"https://api.github.com/users/wm4/orgs","repos_url":"https://api.github.com/users/wm4/repos","events_url":"https://api.github.com/users/wm4/events{/privacy}","received_events_url":"https://api.github.com/users/wm4/received_events","type":"User","site_admin":false},"created_at":"2015-01-01T18:26:08Z","updated_at":"2015-01-01T18:26:08Z","body":"In Lua, the first array entry has index 1, and teaching Lua is out of scope of the manpage."}}