Kvaks

Why does ls succeed on the jpg?

Mar 4th, 2014
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. % #Can someone explain the following? Why does ls on the lowercase jpg succeed?
  2. % ls ./DCIM/100CANON/IMG_0699.*
  3. ./DCIM/100CANON/IMG_0699.CR2 ./DCIM/100CANON/IMG_0699.JPG
  4. % ls ./DCIM/100CANON/IMG_0699.JPG
  5. ./DCIM/100CANON/IMG_0699.JPG
  6. % ls ./DCIM/100CANON/IMG_0699.jpg # <-- WHY DOES THIS SUCCEED?
  7. ./DCIM/100CANON/IMG_0699.jpg
  8. % ls ./DCIM/100CANON/IMG_0699.foobar
  9. ls: cannot access ./DCIM/100CANON/IMG_0699.foobar: No such file or directory
  10. % shopt |grep case
  11. nocaseglob off
  12. nocasematch off
Advertisement
Add Comment
Please, Sign In to add comment