{"action":"created","issue":{"url":"https://api.github.com/repos/fish-shell/fish-shell/issues/1991","labels_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/1991/labels{/name}","comments_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/1991/comments","events_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/1991/events","html_url":"https://github.com/fish-shell/fish-shell/issues/1991","id":62614551,"number":1991,"title":"Autocomplete fails for directories with a single quote in their name","user":{"login":"alaborie","id":86215,"avatar_url":"https://avatars.githubusercontent.com/u/86215?v=3","gravatar_id":"","url":"https://api.github.com/users/alaborie","html_url":"https://github.com/alaborie","followers_url":"https://api.github.com/users/alaborie/followers","following_url":"https://api.github.com/users/alaborie/following{/other_user}","gists_url":"https://api.github.com/users/alaborie/gists{/gist_id}","starred_url":"https://api.github.com/users/alaborie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alaborie/subscriptions","organizations_url":"https://api.github.com/users/alaborie/orgs","repos_url":"https://api.github.com/users/alaborie/repos","events_url":"https://api.github.com/users/alaborie/events{/privacy}","received_events_url":"https://api.github.com/users/alaborie/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-18T07:37:04Z","updated_at":"2015-03-19T01:55:47Z","closed_at":"2015-03-19T01:55:47Z","body":"Hello,\r\n\r\nI've notice that autocompletion fails for directories that have a single quote in their names.\r\n\r\nSteps to reproduce:\r\n1. cd to an empty directory\r\n2. mkdir -p foo_local\\'s_iMac foo_local\\'s_MBP\r\n3. cd <tab> (gives me cd \"foo_local\\'s_\")\r\n4. After that hitting tab again doesn't do anything\r\n\r\nThe regular autocomplete behavior would be:\r\n- first tab: command line is \"cd \"foo_local\\'s_\"\r\n- second tab: the two directories \"foo_local's_iMac\" and \"foo_local's_MBP\" are displayed under the command line\r\n- third tab: command line is now \"cd foo_local's_MBP/\"\r\n- fourth tab: command line is now \"cd foo_local's_iMac\"\r\n\r\nThen it loops back on the \"third tab\" behavior.\r\n\r\nHere's the version of fish I'm using:\r\n% brew info fish\r\nfish: stable 2.1.2 (bottled), HEAD\r\nhttp://fishshell.com\r\n/usr/local/Cellar/fish/2.1.1 (677 files, 5.4M)\r\n  Built from source\r\n/usr/local/Cellar/fish/2.1.2 (670 files, 5.5M) *\r\n  Poured from bottle\r\nFrom: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/fish.rb\r\n"},"comment":{"url":"https://api.github.com/repos/fish-shell/fish-shell/issues/comments/83262623","html_url":"https://github.com/fish-shell/fish-shell/issues/1991#issuecomment-83262623","issue_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/1991","id":83262623,"user":{"login":"zanchey","id":520741,"avatar_url":"https://avatars.githubusercontent.com/u/520741?v=3","gravatar_id":"","url":"https://api.github.com/users/zanchey","html_url":"https://github.com/zanchey","followers_url":"https://api.github.com/users/zanchey/followers","following_url":"https://api.github.com/users/zanchey/following{/other_user}","gists_url":"https://api.github.com/users/zanchey/gists{/gist_id}","starred_url":"https://api.github.com/users/zanchey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zanchey/subscriptions","organizations_url":"https://api.github.com/users/zanchey/orgs","repos_url":"https://api.github.com/users/zanchey/repos","events_url":"https://api.github.com/users/zanchey/events{/privacy}","received_events_url":"https://api.github.com/users/zanchey/received_events","type":"User","site_admin":false},"created_at":"2015-03-19T01:55:47Z","updated_at":"2015-03-19T01:55:47Z","body":"Indeed, I can reproduce this in 2.1.1 but not in the master build from bff68f3 - so I'm going to close this issue for now. If you can see it in HEAD builds please feel free to reopen!"}}