3 ms·
The fool doesn't know how globbing works, but considers his uninformed guess good enough without testing it or reading (and understanding) the spec.
by crest 1y ago
The fool doesn't know how globbing works, but considers his uninformed guess good enough without testing it or reading (and understanding) the spec.
- kelnos 1y agoTo be fair, he does know how globbing works: ".*" should include "." and ".." under normal globbing rules. The 'rm' command (presumably) has a special case in it to avoid traversing those in recursive mode because doing so would be a footgun.
- kps 1y agoTo be fair, POSIX-compliant shells are allowed to exclude `.` and `..`, and some do, and POSIX says this may be required in the future. https://pubs.opengroup.org/onlinepubs/9799919799/utilities/V3_chap02.html#tag_19_14_03 https://pubs.opengroup.org/onlinepubs/9799919799/utilities/V...
- withinboredom 1y agoThankfully they updated it in the last 10 years … oh wait. Hmm. Seems this part of the standard is abandoned. We should create a new standard!
- deleted 1y ago[deleted]