Filename case within .tar archives

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dvb
    Visitor
    • Mar 2004
    • 7

    Filename case within .tar archives

    Hi,

    I've uploaded a .tar archive for you to look at (had to zip it to allow upload) which contains two files varying by case - bc.txt and BC.txt.

    Comparing case.tar with itself or another directory using BC 3.3.4 - build 14431, and maybe other builds, somehow loses one of the files during its untar operation.

    You can see from the console session below that tar extract works OK regardless of the "--(no-)ignore-case" options.

    Code:
    dave@K-Matrix $ ls -l  case
    ls: cannot access case: No such file or directory
    
    dave@K-Matrix $ tar --no-ignore-case -xvf case.tar
    case/
    case/bc.txt
    case/BC.txt
    
    dave@K-Matrix $ ls -l  case
    total 0
    -rw-rw-r-- 1 dave dave 0 2012-04-13 15:40 bc.txt
    -rw-rw-r-- 1 dave dave 0 2012-04-13 15:40 BC.txt
    
    dave@K-Matrix $ rm -r case
    
    dave@K-Matrix $ ls -l  case
    ls: cannot access case: No such file or directory
    
    dave@K-Matrix $ tar --ignore-case -xvf case.tar
    case/
    case/bc.txt
    case/BC.txt
    
    dave@K-Matrix $ ls -l  case
    total 0
    -rw-rw-r-- 1 dave dave 0 2012-04-13 15:40 bc.txt
    -rw-rw-r-- 1 dave dave 0 2012-04-13 15:40 BC.txt
    
    dave@K-Matrix $ rm -r case
    
    dave@K-Matrix $

    Dave
  • Aaron
    Team Scooter
    • Oct 2007
    • 16000

    #2
    Thanks for the report. We'll look into this. In the meantime, it is probably best to extract the tar to your hdd as a folder, then compare the extracted files (which should handle the multiple files of different case).
    Aaron P Scooter Software

    Comment

    • dvb
      Visitor
      • Mar 2004
      • 7

      #3
      Originally posted by Aaron
      Thanks for the report. We'll look into this. In the meantime, it is probably best to extract the tar to your hdd as a folder, then compare the extracted files (which should handle the multiple files of different case).
      Thanks, Aaaron.
      Yes, I read the the threads about case sensitivity and BC handles it as I'd expect with normal folders.

      Comment

      Working...