What is in the case that the suffix is not 3 characters long, e. g. ".tz" or ".tbz2"?
On Sun, 8 Apr 2018 12:34:40 -0700 Jim Meyering <j...@meyering.net> wrote: > 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? >
pgps3F25rUut1.pgp
Description: Digitale Signatur von OpenPGP