On Sun, Apr 8, 2018 at 11:16 AM, Jim Meyering <j...@meyering.net> wrote: > On Sun, Apr 8, 2018 at 1:53 AM, Sergey Poznyakoff <g...@gnu.org.ua> wrote: ... > I see what you mean. So how would you like a NAME of "a.tar.tar" to be > treated? Seems wrong to remove the second .tar suffix. How about this > change, to make it remove ".tar" only if the just-stripped suffix is > not also ".tar"?
After writing that, I realized that perhaps we should treat a name like "foo.tar.tgz" (whose final suffix begins with ".t") like "foo.tar.tar", i.e., in preserving the nested ".tar" component. WDYT?