9 ms·
To be fair, he does know how globbing works: ".*" should include "." and ".." under normal globbing rules. The 'rm' command (presumably) has a special case in
by kelnos 1y ago
To 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]