{"action":"created","issue":{"url":"https://api.github.com/repos/dthree/cash/issues/41","repository_url":"https://api.github.com/repos/dthree/cash","labels_url":"https://api.github.com/repos/dthree/cash/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/dthree/cash/issues/41/comments","events_url":"https://api.github.com/repos/dthree/cash/issues/41/events","html_url":"https://github.com/dthree/cash/issues/41","id":137027933,"number":41,"title":"Incorrect behavior for ls","user":{"login":"nfischer","id":5801521,"avatar_url":"https://avatars.githubusercontent.com/u/5801521?v=3","gravatar_id":"","url":"https://api.github.com/users/nfischer","html_url":"https://github.com/nfischer","followers_url":"https://api.github.com/users/nfischer/followers","following_url":"https://api.github.com/users/nfischer/following{/other_user}","gists_url":"https://api.github.com/users/nfischer/gists{/gist_id}","starred_url":"https://api.github.com/users/nfischer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nfischer/subscriptions","organizations_url":"https://api.github.com/users/nfischer/orgs","repos_url":"https://api.github.com/users/nfischer/repos","events_url":"https://api.github.com/users/nfischer/events{/privacy}","received_events_url":"https://api.github.com/users/nfischer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-28T08:51:42Z","updated_at":"2016-02-28T17:11:25Z","closed_at":null,"body":"I noticed a few main issues with `ls` so far:\r\n\r\n 1. `ls filedoesntexist` should output a message of the form `ls: cannot access filedoesntexist: No such file or directory`. Currently, it has no output.\r\n 2. Calling `ls` with multiple arguments causes files to look kind of like directories. This has output like:\r\n  ```\r\n  cash $ ls README.md appveyor.yml src\r\n  README.md:\r\n  README.md\r\n\r\n  appveyor.yml:\r\n  appveyor.yml\r\n\r\n  src:\r\n  commands  delimiter.js  help  help.js  index.js  lib  preparser.js  util  windows.js\r\n  ```\r\n\r\n  whereas I would expect:\r\n  ```\r\n  cash $ ls README.md appveyor.yml src\r\n  appveyor.yml README.md\r\n\r\n  src:\r\n  commands  delimiter.js  help  help.js  index.js  lib  preparser.js  util  windows.js\r\n  ```\r\n 3. Calling `ls` on non-existing files, if there are multiple arguments, treats them like empty directories:\r\n  ```\r\n  cash $ ls noexist1 noexist2\r\n  noexist1:\r\n\r\n\r\n  noexist2:\r\n\r\n  ```\r\n  whereas I would expect:\r\n  ```\r\n  cash $ ls noexist1 noexist2\r\n  ls: cannot access noexist1: No such file or directory\r\n  ls: cannot access noexist2: No such file or directory\r\n  ```\r\n\r\nI suspect solving bugs 1 and 2 will solve 3 for you.\r\n\r\nAll of this is running off the latest release of  `cash` on Ubuntu."},"comment":{"url":"https://api.github.com/repos/dthree/cash/issues/comments/189909052","html_url":"https://github.com/dthree/cash/issues/41#issuecomment-189909052","issue_url":"https://api.github.com/repos/dthree/cash/issues/41","id":189909052,"user":{"login":"dthree","id":10319897,"avatar_url":"https://avatars.githubusercontent.com/u/10319897?v=3","gravatar_id":"","url":"https://api.github.com/users/dthree","html_url":"https://github.com/dthree","followers_url":"https://api.github.com/users/dthree/followers","following_url":"https://api.github.com/users/dthree/following{/other_user}","gists_url":"https://api.github.com/users/dthree/gists{/gist_id}","starred_url":"https://api.github.com/users/dthree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dthree/subscriptions","organizations_url":"https://api.github.com/users/dthree/orgs","repos_url":"https://api.github.com/users/dthree/repos","events_url":"https://api.github.com/users/dthree/events{/privacy}","received_events_url":"https://api.github.com/users/dthree/received_events","type":"User","site_admin":false},"created_at":"2016-02-28T17:11:25Z","updated_at":"2016-02-28T17:11:25Z","body":"Thanks. Valid points."}}