13:37 I don't know what version of tar this guy is using, but a normal tar can't archive stdin input. tar can create archives and write them to stdout, it can extract from archives coming in by stdin, but cannot create archives from raw data coming in from stdin. tar needs files because it stores file meta data like creation and modification times, permissions, ownership etc. so it can't work with raw data. I call bullsh*t on this one.
@morbidrsa What tar does here is interpret the the data it gets from stdin as paths to files it has to add to the tgz, so basically note.txt is a list of files that have to be added to note.tar.gz. (It might seem to work if you put the text "note.txt" in your note.txt, but that's by self reference.)
13:37 I don't know what version of tar this guy is using, but a normal tar can't archive stdin input. tar can create archives and write them to stdout, it can extract from archives coming in by stdin, but cannot create archives from raw data coming in from stdin. tar needs files because it stores file meta data like creation and modification times, permissions, ownership etc. so it can't work with raw data. I call bullsh*t on this one.
JerehmiaBoaz 1 month ago
@JerehmiaBoaz
$ cat note.txt | xargs tar cfz note.tar.gz
$ tar --version
tar (GNU tar) 1.25
[...]
morbidrsa 1 month ago
@morbidrsa What tar does here is interpret the the data it gets from stdin as paths to files it has to add to the tgz, so basically note.txt is a list of files that have to be added to note.tar.gz. (It might seem to work if you put the text "note.txt" in your note.txt, but that's by self reference.)
JerehmiaBoaz 1 month ago