6 ms·
On a Mac you (used to?) get a non-ascii space when you hit the space bar while holding Alt or something like that. Easy to fat-finger it in any case and looks t
by adrianN 11y ago
On a Mac you (used to?) get a non-ascii space when you hit the space bar while holding Alt or something like that. Easy to fat-finger it in any case and looks the same in most text editors. It's a great source of fun for novice Mac-using programmers to find out why the compiler complains.
- amadahy 11y agoThis is still happening as of today: ps aux | grep foo zsh: command not found: grep It happens to me at least every other day.
- mcculley 11y agoThe Commodore 64 (or some other machine from my childhood) would generate a non-ASCII space if you held down control (or shift maybe) when pressing it. To this day I'm careful about that. I didn't know it was still a possible problem.
- kps 11y agoIt's not terribly difficult to define custom keyboard layouts for OS X. Make a copy of your preferred layout and get Ukelele [sic] from SIL¹ to remove NBSP from Option-Space. (Or just hand-edit the XML changing " " to " ".) ¹ http://scripts.sil.org/ukelele http://scripts.sil.org/ukelele
- naggie 11y agoIt still does! You've just explained something that has been annoying me for about a year now. Thanks!
- thousande 11y agoA good IDE would pick this up. I had the habit of pressing the ALT key a bit ahead of time before an OR operator. if (foo || bar)