{"action":"opened","issue":{"url":"https://api.github.com/repos/fish-shell/fish-shell/issues/3680","repository_url":"https://api.github.com/repos/fish-shell/fish-shell","labels_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/3680/labels{/name}","comments_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/3680/comments","events_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/3680/events","html_url":"https://github.com/fish-shell/fish-shell/issues/3680","id":197659295,"number":3680,"title":"on macOS after 'cd /Volumes/DRIVE', ls behaves weird","user":{"login":"gyakovlev","id":168902,"avatar_url":"https://avatars.githubusercontent.com/u/168902?v=3","gravatar_id":"","url":"https://api.github.com/users/gyakovlev","html_url":"https://github.com/gyakovlev","followers_url":"https://api.github.com/users/gyakovlev/followers","following_url":"https://api.github.com/users/gyakovlev/following{/other_user}","gists_url":"https://api.github.com/users/gyakovlev/gists{/gist_id}","starred_url":"https://api.github.com/users/gyakovlev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gyakovlev/subscriptions","organizations_url":"https://api.github.com/users/gyakovlev/orgs","repos_url":"https://api.github.com/users/gyakovlev/repos","events_url":"https://api.github.com/users/gyakovlev/events{/privacy}","received_events_url":"https://api.github.com/users/gyakovlev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-27T07:20:35Z","updated_at":"2016-12-27T07:20:35Z","closed_at":null,"body":"<!-- check if this problem is already solved! github.com/issues?q=is:issue+user:fish-shell -->\r\n- [x] Have you checked if problem occurs with [fish 2.4.0](/fish-shell/fish-shell/releases/tag/2.4.0)?\r\n- [x] Tried fish without third-party customizations *(check `sh -c 'env HOME=$(mktemp -d) fish'`)*?\r\n\r\n**fish version installed** *(`fish --version`)*:\r\nfish, version 2.4.0, installed from homebrew\r\n**OS/terminal used**: \r\nmacOS 10.12.2 / iTerm 3.0.13\r\n\r\n\r\nIn iTerm if I go to /Volumes/DRIVE directory and issue an ls command it does not show files occasionally. The drive has to be FAT32 one. Maybe NTFS, have no tools to create NTFS filesystem right now.\r\n\r\n\r\n\r\n\r\n## Reproduction steps\r\n1. Insert a FAT32/mbr formatted flash drive into computer, with some files/folders in the root of the drive.\r\n2. cd /Volumes/DRIVE\r\n3. ls\r\n4. ls -F <---breaks here\r\n5. running ls /Volumes/DRIVE works\r\n\r\nsometimes it breaks for running just ls, or running /bin/ls with options.\r\nthe most reliable way to get the bug is to try and run ```ls -F``` while in a fat32 mounted drive root directory.\r\nI tried to capture different breakages in the following screenshot and screencast.\r\nI rely on ```ls -F``` sometimes, with my vision colored directories is not enough sometimes, so I like those extra slashes.\r\n\r\n<img width=\"1136\" alt=\"screen shot 2016-12-26 at 10 32 30 pm\" src=\"https://cloud.githubusercontent.com/assets/168902/21492875/fc27811c-cbbc-11e6-96ab-d15037be4f6d.png\">\r\n\r\n[![asciicast](https://asciinema.org/a/8x9v1oc85w39juclemwf88j33.png)](https://asciinema.org/a/8x9v1oc85w39juclemwf88j33)\r\nReproducible  iTerm and Terminal.app with a FAT32 formatted USB drive. \r\nWorks ok in bash, Works fine with my HFS+ encrypted time machine usb disk.\r\n\r\nThat has to be something with FAT32.\r\n\r\n## Disk info\r\n```console\r\nya@geo ~> diskutil list disk4\r\n/dev/disk4 (external, physical):\r\n   #:                       TYPE NAME                    SIZE       IDENTIFIER\r\n   0:     FDisk_partition_scheme                        *4.1 GB     disk4\r\n   1:                 DOS_FAT_32 4GB                     4.1 GB     disk4s1\r\nya@geo ~> mount -t msdos\r\n/dev/disk4s1 on /Volumes/4GB (msdos, local, nodev, nosuid, noowners)\r\n\r\n```"}}
{"actor":{"display_login":"gyakovlev"}}