{"action":"created","issue":{"url":"https://api.github.com/repos/shelljs/shelljs/issues/463","repository_url":"https://api.github.com/repos/shelljs/shelljs","labels_url":"https://api.github.com/repos/shelljs/shelljs/issues/463/labels{/name}","comments_url":"https://api.github.com/repos/shelljs/shelljs/issues/463/comments","events_url":"https://api.github.com/repos/shelljs/shelljs/issues/463/events","html_url":"https://github.com/shelljs/shelljs/issues/463","id":160836850,"number":463,"title":"`cp` work incorrectly when folder name contains '@'","user":{"login":"s-panferov","id":198327,"avatar_url":"https://avatars.githubusercontent.com/u/198327?v=3","gravatar_id":"","url":"https://api.github.com/users/s-panferov","html_url":"https://github.com/s-panferov","followers_url":"https://api.github.com/users/s-panferov/followers","following_url":"https://api.github.com/users/s-panferov/following{/other_user}","gists_url":"https://api.github.com/users/s-panferov/gists{/gist_id}","starred_url":"https://api.github.com/users/s-panferov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s-panferov/subscriptions","organizations_url":"https://api.github.com/users/s-panferov/orgs","repos_url":"https://api.github.com/users/s-panferov/repos","events_url":"https://api.github.com/users/s-panferov/events{/privacy}","received_events_url":"https://api.github.com/users/s-panferov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-17T08:26:59Z","updated_at":"2016-06-17T08:51:28Z","closed_at":null,"body":"### Node version:\r\n\r\nnode -v\r\nv4.2.6\r\n\r\n### ShellJS version:\r\n\r\n0.7.0\r\n\r\n### Operating system:\r\n\r\nOSX 10.11.5\r\n\r\n### Description of the bug:\r\n\r\nMy structure\r\n```\r\nbuild\r\n  /node_modules\r\n    /@folder\r\n    /another-folder\r\n```\r\n\r\nWhen I write `cp build/* other/`, only `@folder` copied from `node_modules`, but `another-folder` doesn't. It works correctly when I remove `@` from the name.\r\n\r\nPlease note that '@' is default symbol for namespaces in `npm`."},"comment":{"url":"https://api.github.com/repos/shelljs/shelljs/issues/comments/226715927","html_url":"https://github.com/shelljs/shelljs/issues/463#issuecomment-226715927","issue_url":"https://api.github.com/repos/shelljs/shelljs/issues/463","id":226715927,"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},"created_at":"2016-06-17T08:51:28Z","updated_at":"2016-06-17T08:51:28Z","body":"@s-panferov `cp build/* other/` shouldn't be supported. You can't copy directories unless you use `-r`.\r\n\r\nI just tried this out, and could not reproduce the bug on Ubuntu.\r\n\r\n```bash\r\n$ tree # before running the command\r\n.\r\n└── build\r\n    └── node_modules\r\n        ├── another-folder\r\n        │   └── bar\r\n        └── @folder\r\n            └── foo\r\n```\r\n\r\n```javascript\r\n> // in NodeJS, in either version v4.2.4 or v6.0.0\r\n> require('shelljs/global'); // shelljs v0.7\r\n> cp('-r', 'build/', 'other/');\r\n```\r\n\r\n```bash\r\n$ tree # after running the command\r\n.\r\n├── build\r\n│   └── node_modules\r\n│       ├── another-folder\r\n│       │   └── bar\r\n│       └── @folder\r\n│           └── foo\r\n└── other\r\n    └── node_modules\r\n        ├── another-folder\r\n        │   └── bar\r\n        └── @folder\r\n            └── foo\r\n```\r\n\r\n@s-panferov Does this behave differently for you, or am I misunderstanding?"}}
{"actor":{"display_login":"nfischer"}}