Closed kmmon closed 9 months ago
.tar
("tape archive") files are archives.
Being archives, they contain one or more other files in a directory structure.
moar
is a tool for viewing text files one at a time.
When you open an archive using moar something.tar.gz
, what would you expect moar
to show or do?
Right now moar
just (wrongly in this case) assumes the archive is a text file (because moar
is a text file viewer) and shows the archive as a text file.
What would you like moar
to do instead?
My simple usecase is reading a helm chart in archived from. Helm archives are in tarball (.tgz) form and given moar already is capable of reading .tar.gz I would like it to work with .tgz format as well.
There are programs that uses .tgz as part of their packaging for example helm.
Now when I do
moar demo-0.1.0.tgz
I get random output containing question marks. When I rename the file to something like.tar.gz
then I get the output correctly. For renaming I use the followingBut after that also I get some question marks next to file names and sometimes file names are not properly shown as well.
Happy to help.