file globbing in now case insensitive?
Peter Silva
peter at bsqt.homeip.net
Sun Apr 2 14:12:32 UTC 2017
After deleting a bunch of files by mistake, I've tried this on two
different ubuntu 16.04's, and it works the same, but I don't understand why.
Normally, file globbing is case sensitive. so:
blacklab% mkdir /tmp/kk
blacklab% cd /tmp/kk
blacklab% ls
blacklab% touch A b 1
blacklab% ls -al
total 1060
drwxrwxr-x 2 peter peter 4096 Apr 2 10:08 .
drwxrwxrwt 15 root root 1081344 Apr 2 10:08 ..
-rw-rw-r-- 1 peter peter 0 Apr 2 10:08 1
-rw-rw-r-- 1 peter peter 0 Apr 2 10:08 A
-rw-rw-r-- 1 peter peter 0 Apr 2 10:08 b
blacklab% echo [A-Z]*
A b
blacklab%
Huh? this should only have listed A, but I got b as well...
what's going on?
blacklab% shopt | grep -i case
nocaseglob off
nocasematch off
blacklab%
I can't do case sensitive file globbing any more... no matter what settings
are applied... this is overcoming how things have worked for 30 years...
what's going on?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20170402/a32551a7/attachment.html>
More information about the ubuntu-users
mailing list