Control: retitle -1 atool: inconsistencies in file extensions On 2017-01-04 10:11:25 +0100, Vincent Lefevre wrote: > When extracting an archive that has multiple files in root, atool > creates a directory. The chosen name is not consistent. For instance, > for archive.txz, the directory name is "archive" (if it does not exist > yet), but for archive.tar.xz, it is "archive.tar", while .tar.xz and > .txz are regarded as equivalent extensions: > > tar+xz (.tar.xz, .txz) > All commands are supported. > > It should be "archive" in both cases.
Actually this problem may be specific to .tar.xz as I see that it is missing from sub stripext. But there are other inconsistencies. The atool(1) man page says: tar+lzop (.tar.lzo, .tzo) All commands are supported. and sub stripext contains: return $file if ($file =~ s/(\.tar\.lzo|\.lzo)$//); It should be: return $file if ($file =~ s/(\.tar\.lzo|\.tzo)$//); and .lzo should be on its own. Inconsistencies with lzma too and maybe others. -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)