{"action":"created","issue":{"url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/4161","labels_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/4161/labels{/name}","comments_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/4161/comments","events_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/4161/events","html_url":"https://github.com/robbyrussell/oh-my-zsh/issues/4161","id":95130873,"number":4161,"title":"termsupport.zsh breaks `ls` command result of FAT32 partition","user":{"login":"honnix","id":158892,"avatar_url":"https://avatars.githubusercontent.com/u/158892?v=3","gravatar_id":"","url":"https://api.github.com/users/honnix","html_url":"https://github.com/honnix","followers_url":"https://api.github.com/users/honnix/followers","following_url":"https://api.github.com/users/honnix/following{/other_user}","gists_url":"https://api.github.com/users/honnix/gists{/gist_id}","starred_url":"https://api.github.com/users/honnix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/honnix/subscriptions","organizations_url":"https://api.github.com/users/honnix/orgs","repos_url":"https://api.github.com/users/honnix/repos","events_url":"https://api.github.com/users/honnix/events{/privacy}","received_events_url":"https://api.github.com/users/honnix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":28,"created_at":"2015-07-15T08:07:08Z","updated_at":"2015-09-10T19:47:02Z","closed_at":null,"body":"This sounds a bit of weird, but setting window name of iTerm2 breaks `ls` command result.\r\n\r\nEnvironment:\r\n* OS X 10.10.4\r\n* iTerm2 2.1.1\r\n* OMZ latest master branch\r\n* USB key with FAT32 partition\r\n\r\nHow to reproduce:\r\n1. Plug in the USB key that will be mounted automatically by OS X to, say `/Volumes/USB`\r\n2. Start iTerm2 (zsh as default shell and OMZ loaded, `TERM` is `xterm-256color`)\r\n3. `cd /Volumes/USB` and `ls` results only a `.` without any other files being listed, `ls -l` results `ls: .: Invalid argument`\r\n4. `cd /Volumes` and `ls USB` gives correct result, so does `ls -l`\r\n5. Comment out `print -Pn \"\\e]2;$2:q\\a\" #set window name` in termsupport.zsh, repeat above steps and problem is gone\r\n\r\nNot sure how exactly this would happen, but feels like some escape problem.\r\n\r\nThe same issue has been reported [here](https://github.com/sorin-ionescu/prezto/issues/792) but didn't get proper handling.\r\n"},"comment":{"url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/comments/139359480","html_url":"https://github.com/robbyrussell/oh-my-zsh/issues/4161#issuecomment-139359480","issue_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/4161","id":139359480,"user":{"login":"vlsd","id":278058,"avatar_url":"https://avatars.githubusercontent.com/u/278058?v=3","gravatar_id":"","url":"https://api.github.com/users/vlsd","html_url":"https://github.com/vlsd","followers_url":"https://api.github.com/users/vlsd/followers","following_url":"https://api.github.com/users/vlsd/following{/other_user}","gists_url":"https://api.github.com/users/vlsd/gists{/gist_id}","starred_url":"https://api.github.com/users/vlsd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vlsd/subscriptions","organizations_url":"https://api.github.com/users/vlsd/orgs","repos_url":"https://api.github.com/users/vlsd/repos","events_url":"https://api.github.com/users/vlsd/events{/privacy}","received_events_url":"https://api.github.com/users/vlsd/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T19:47:02Z","updated_at":"2015-09-10T19:47:02Z","body":">On the other hand, Apple seems to abandon versions of OS X after one year, so this may never get fixed for 10.10.\r\n\r\nHopefully they won't propagate the offending piece of code forward to the next version of OS X"}}