{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/221","repository_url":"https://api.github.com/repos/Microsoft/BashOnWindows","labels_url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/221/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/221/comments","events_url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/221/events","html_url":"https://github.com/Microsoft/BashOnWindows/issues/221","id":149011758,"number":221,"title":"Cannot move '~/xyz' to a subdirectory of itself '/opt/xyz'","user":{"login":"Coridyn","id":1791456,"avatar_url":"https://avatars.githubusercontent.com/u/1791456?v=3","gravatar_id":"","url":"https://api.github.com/users/Coridyn","html_url":"https://github.com/Coridyn","followers_url":"https://api.github.com/users/Coridyn/followers","following_url":"https://api.github.com/users/Coridyn/following{/other_user}","gists_url":"https://api.github.com/users/Coridyn/gists{/gist_id}","starred_url":"https://api.github.com/users/Coridyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Coridyn/subscriptions","organizations_url":"https://api.github.com/users/Coridyn/orgs","repos_url":"https://api.github.com/users/Coridyn/repos","events_url":"https://api.github.com/users/Coridyn/events{/privacy}","received_events_url":"https://api.github.com/users/Coridyn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/BashOnWindows/labels/fixed","name":"fixed","color":"c2e0c6"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-18T00:41:35Z","updated_at":"2016-04-28T02:06:45Z","closed_at":"2016-04-18T10:03:00Z","body":"Trying to move a directory from my home directory to `/opt` fails with an error saying the destination is a subdirectory of itself.\r\n\r\n```bash\r\n/$ cd ~/\r\n~$ mkdir xyz\r\n~$ mv xyz/ /opt\r\n```\r\n\r\n```bash\r\nmv: cannot move ‘xyz/’ to a subdirectory of itself, ‘/opt/xyz’\r\n```\r\n\r\nThe source and destination are in totally different locations so I don't know why it's saying the destination is a subdirectory of the source.\r\n\r\nI can rename it within my home directory:\r\n\r\n```\r\n~/ mv xyz abc\r\n```\r\n\r\nBut I get the same error trying to move it anywhere under `/`:\r\n\r\n```\r\n~$ mv xyz /usr/local\r\nmv: cannot move ‘xyz’ to a subdirectory of itself, ‘/usr/local/xyz’\r\n\r\n~$ mv xyz /\r\nmv: cannot move ‘xyz’ to a subdirectory of itself, ‘/xyz’\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/comments/215287416","html_url":"https://github.com/Microsoft/BashOnWindows/issues/221#issuecomment-215287416","issue_url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/221","id":215287416,"user":{"login":"benhillis","id":17727402,"avatar_url":"https://avatars.githubusercontent.com/u/17727402?v=3","gravatar_id":"","url":"https://api.github.com/users/benhillis","html_url":"https://github.com/benhillis","followers_url":"https://api.github.com/users/benhillis/followers","following_url":"https://api.github.com/users/benhillis/following{/other_user}","gists_url":"https://api.github.com/users/benhillis/gists{/gist_id}","starred_url":"https://api.github.com/users/benhillis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benhillis/subscriptions","organizations_url":"https://api.github.com/users/benhillis/orgs","repos_url":"https://api.github.com/users/benhillis/repos","events_url":"https://api.github.com/users/benhillis/events{/privacy}","received_events_url":"https://api.github.com/users/benhillis/received_events","type":"User","site_admin":false},"created_at":"2016-04-28T02:06:45Z","updated_at":"2016-04-28T02:06:45Z","body":"@yasirs Yeah looks liks this one is fixed."}}