{"action":"created","issue":{"url":"https://api.github.com/repos/whoozle/android-file-transfer-linux/issues/96","labels_url":"https://api.github.com/repos/whoozle/android-file-transfer-linux/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/whoozle/android-file-transfer-linux/issues/96/comments","events_url":"https://api.github.com/repos/whoozle/android-file-transfer-linux/issues/96/events","html_url":"https://github.com/whoozle/android-file-transfer-linux/issues/96","id":115478033,"number":96,"title":"cli: Can't noninteractively list non-root directory","user":{"login":"vi","id":173219,"avatar_url":"https://avatars.githubusercontent.com/u/173219?v=3","gravatar_id":"","url":"https://api.github.com/users/vi","html_url":"https://github.com/vi","followers_url":"https://api.github.com/users/vi/followers","following_url":"https://api.github.com/users/vi/following{/other_user}","gists_url":"https://api.github.com/users/vi/gists{/gist_id}","starred_url":"https://api.github.com/users/vi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vi/subscriptions","organizations_url":"https://api.github.com/users/vi/orgs","repos_url":"https://api.github.com/users/vi/repos","events_url":"https://api.github.com/users/vi/events{/privacy}","received_events_url":"https://api.github.com/users/vi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-06T10:25:44Z","updated_at":"2015-11-06T10:35:25Z","closed_at":null,"body":"* `cli/aft-mtp-cli  ls DCIM/Camera_2` - root directory get listed\r\n* `cli/aft-mtp-cli  ls /DCIM/Camera_2` - root directory get listed\r\n* `cli/aft-mtp-cli  cd DCIM/Camera_2 ls` - only `cd` command executed\r\n* `cli/aft-mtp-cli  'cd DCIM/Camera_2 ; ls'` - `error: invalid command cd DCIM/Camera_2 ; ls`\r\n* `cli/aft-mtp-cli  cd DCIM/Camera_2 ';' ls` - only `cd` command executed\r\n"},"comment":{"url":"https://api.github.com/repos/whoozle/android-file-transfer-linux/issues/comments/154375029","html_url":"https://github.com/whoozle/android-file-transfer-linux/issues/96#issuecomment-154375029","issue_url":"https://api.github.com/repos/whoozle/android-file-transfer-linux/issues/96","id":154375029,"user":{"login":"vi","id":173219,"avatar_url":"https://avatars.githubusercontent.com/u/173219?v=3","gravatar_id":"","url":"https://api.github.com/users/vi","html_url":"https://github.com/vi","followers_url":"https://api.github.com/users/vi/followers","following_url":"https://api.github.com/users/vi/following{/other_user}","gists_url":"https://api.github.com/users/vi/gists{/gist_id}","starred_url":"https://api.github.com/users/vi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vi/subscriptions","organizations_url":"https://api.github.com/users/vi/orgs","repos_url":"https://api.github.com/users/vi/repos","events_url":"https://api.github.com/users/vi/events{/privacy}","received_events_url":"https://api.github.com/users/vi/received_events","type":"User","site_admin":false},"created_at":"2015-11-06T10:35:25Z","updated_at":"2015-11-06T10:35:25Z","body":"I try to batch test listing a directory from cli, and itsead of this script:\r\n\r\n    for i in {1..20}; do printf 'cd DCIM/Camera_2\\nls\\n' | socat - exec:cli/aft-mtp-cli,pty  > ttt/$i.txt;  done\r\n\r\nI'd prefer to use something like this:\r\n\r\n    for i in {1..20}; do cli/aft-mtp-cli  ls DCIM/Camera_2  > ttt/$i.txt;  done\r\n"}}