{"action":"created","issue":{"url":"https://api.github.com/repos/shelljs/shelljs/issues/857","repository_url":"https://api.github.com/repos/shelljs/shelljs","labels_url":"https://api.github.com/repos/shelljs/shelljs/issues/857/labels{/name}","comments_url":"https://api.github.com/repos/shelljs/shelljs/issues/857/comments","events_url":"https://api.github.com/repos/shelljs/shelljs/issues/857/events","html_url":"https://github.com/shelljs/shelljs/issues/857","id":330932823,"node_id":"MDU6SXNzdWUzMzA5MzI4MjM=","number":857,"title":"The result of `shell.ls('XXX/**')` is not equal to `ls XXX/**`","user":{"login":"exKAZUu","id":436237,"node_id":"MDQ6VXNlcjQzNjIzNw==","avatar_url":"https://avatars0.githubusercontent.com/u/436237?v=4","gravatar_id":"","url":"https://api.github.com/users/exKAZUu","html_url":"https://github.com/exKAZUu","followers_url":"https://api.github.com/users/exKAZUu/followers","following_url":"https://api.github.com/users/exKAZUu/following{/other_user}","gists_url":"https://api.github.com/users/exKAZUu/gists{/gist_id}","starred_url":"https://api.github.com/users/exKAZUu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exKAZUu/subscriptions","organizations_url":"https://api.github.com/users/exKAZUu/orgs","repos_url":"https://api.github.com/users/exKAZUu/repos","events_url":"https://api.github.com/users/exKAZUu/events{/privacy}","received_events_url":"https://api.github.com/users/exKAZUu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"nfischer","id":5801521,"node_id":"MDQ6VXNlcjU4MDE1MjE=","avatar_url":"https://avatars3.githubusercontent.com/u/5801521?v=4","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},"assignees":[{"login":"nfischer","id":5801521,"node_id":"MDQ6VXNlcjU4MDE1MjE=","avatar_url":"https://avatars3.githubusercontent.com/u/5801521?v=4","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}],"milestone":null,"comments":0,"created_at":"2018-06-10T01:47:32Z","updated_at":"2018-06-11T17:44:42Z","closed_at":null,"author_association":"NONE","body":"### Node version (or tell us if you're using electron or some other framework):\r\n\r\nv9.11.1\r\n\r\n### ShellJS version (the most recent version/Github branch you see the bug on):\r\n\r\n0.8.2\r\n\r\n### Operating system:\r\n\r\nMac OS\r\n\r\n### Description of the bug:\r\n\r\nAlthough `ls ~/Projects/temp_dir/**` shows the following result,\r\n```\r\n~/Projects/temp_dir/temp_file\r\n```\r\n`node -p \"require('shelljs').ls('~/Projects/temp_dir/**').map(f => f)\"` shows the following result.\r\n```\r\n[ 'temp_file', '~/Projects/temp_dir/temp_file' ]\r\n```\r\n\r\n(Please note that `~` is extracted to a concrete path actually.)\r\n\r\n### Example ShellJS command to reproduce the error:\r\n\r\n`node -p \"require('shelljs').ls('~/Projects/temp_dir/**').map(f => f)\"`"},"comment":{"url":"https://api.github.com/repos/shelljs/shelljs/issues/comments/396326613","html_url":"https://github.com/shelljs/shelljs/issues/857#issuecomment-396326613","issue_url":"https://api.github.com/repos/shelljs/shelljs/issues/857","id":396326613,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NjMyNjYxMw==","user":{"login":"nfischer","id":5801521,"node_id":"MDQ6VXNlcjU4MDE1MjE=","avatar_url":"https://avatars3.githubusercontent.com/u/5801521?v=4","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},"created_at":"2018-06-11T17:44:42Z","updated_at":"2018-06-11T17:44:42Z","author_association":"MEMBER","body":"Thanks for reporting this. I'll look into this."}}
{"actor":{"display_login":"nfischer"}}