-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Teach --list-archives about --null #294
Comments
What do you mean by
tarsnap-gui currently does My first thought that So that we have a convenient reference, here's the current output:
I don't see how |
The problem with |
but as far as the tarsnap binary is concerned, there's no such thing as
The "Command-line" output is printing the raw contents of
but that will be looking for a filename which contains double quotes. EDIT: deleted some complete garbage that I wrote. |
Nice discussion about special characters in filenames by David A. Wheeler: https://dwheeler.com/essays/fixing-unix-linux-filenames.html (probably nothing new there for @cperciva, but I'm adding here as a reminder for myself) |
I think there's a few different issues mingling here, and it's not clear to me which one(s) we want to solve:
|
BTW, if anybody relies on |
If you run
then tarsnap will create an archive containing the files
then tarsnap will create an archive containing the single file The point of |
It's useful for users -- at least if they're creating archives by hand. I've personally used it when I couldn't remember which directories I had archived. |
Yes, I get that. But there's no way for the binary to distinguish between
and
so AFAIK the recorded command-line cannot be guaranteed to match the given command-line. |
Right. I'm just saying that there's no point making |
Right. I'm just saying that there's no point making (I'm now wondering if the GUI should do |
Hmm, I didn't realize the GUI was using |
Yeah, and I'm not really certain why. I mean, sure, that gives it the command-lines... but it has a ton of options. I mean, look at this:
One of those archives is much less informative than the others! |
(err, I'm arguing that by including so many details, it's harder for humans to see the important bits. So it's less informative because there's too much information.) |
We should make --list-archives respect --null, to avoid problems if people do silly things like putting newline characters into their archive names.
This is a backwards-compatible change in behaviour, because currently --null errors for --list-archives.
It's not clear how --null should interact with -v -v, so leave that as an error for now. But --list-archives -v -null should print \0\0\0\0...
Once this is done, tarsnap-gui should make use of it. Right now it's just splitting on newlines, which could cause problems if processing a list of archives created via the command line.
The text was updated successfully, but these errors were encountered: