4 ms·
Adding . and .. was a mistake by itself. I never needed them, but always had to write conditions to skip them when traversing the file system. Also, dotfiles d
by codedokode 4y ago
Adding . and .. was a mistake by itself. I never needed them, but always had to write conditions to skip them when traversing the file system.
Also, dotfiles don't work well with masks because `*` doesn't match dot-files, and `.*` match all dotfiles including . and .. which causes many programs to fall into endless recursion (for example, `du -sh .*`).
Everything related to dotfiles in Linux is done wrong.
- GekkePrutser 4y agoWildcards are entirely shell-dependent so blame the shell you're using, not Linux :)
- debugnik 4y agoglob and fnmatch are C functions defined in POSIX though.