16 Mar
2021
16 Mar
'21
12:30
On 2021-03-15 6:38 p.m., David T-G wrote:
diskfarm:/tmp/X # ls -la .[:alnum:]* -rw-r--r-- 1 root root 0 Mar 15 22:27 .abc diskfarm:/tmp/X # ls -la .[:alnum:] ls: cannot access '.[:alnum:]': No such file or directory diskfarm:/tmp/X #
Note that .abc worked because 'a' is one of the characters :-)
it looks like the shell doesn't like [:alnum:] But then again, those are POSIX defines character classes. I don't think that the shell is operating in a POSIX environment. -- “Reality is so complex, we must move away from dogma, whether it’s conspiracy theories or free-market,” -- James Glattfelder. http://jth.ch/jbg