Editing Talk:1168: tar

Jump to: navigation, search
Ambox notice.png Please sign your posts with ~~~~

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 36: Line 36:
 
: Will '''tar -?''' be valid everywhere?. [[User:Arifsaha|Arifsaha]] ([[User talk:Arifsaha|talk]]) 19:32, 1 February 2013 (UTC)
 
: Will '''tar -?''' be valid everywhere?. [[User:Arifsaha|Arifsaha]] ([[User talk:Arifsaha|talk]]) 19:32, 1 February 2013 (UTC)
 
:: No, in very old implementations of tar (pre-POSIX), the hyphen is not permitted before flags. I believe that '''tar ?''' will be though. [[Special:Contributions/172.68.54.166|172.68.54.166]] 19:55, 14 April 2020 (UTC)
 
:: No, in very old implementations of tar (pre-POSIX), the hyphen is not permitted before flags. I believe that '''tar ?''' will be though. [[Special:Contributions/172.68.54.166|172.68.54.166]] 19:55, 14 April 2020 (UTC)
βˆ’
::: It's worse than that, neither of those are safe. '''tar ?''' is particularly bad, because if you have a single-character filename in your directory, like '''c''', then this will be the equivalent of '''tar c''' after shell expansion, i.e. to create a file. It's a lot less like that you'll have a file named '''-c''' (and you'd probably have to refer to it as '''./-c''' most of the time), but the problem remains. So instead, at the shell command-line, you must quote the question-mark, i.e. '''tar -\?''' or '''tar \?'''. Still, I think it could be fairly argued that anything that causes tar to print the usage text would not qualify as a "valid" command for purposes of the bomb. [[User:JohnHawkinson|JohnHawkinson]] ([[User talk:JohnHawkinson|talk]]) 19:29, 7 April 2022 (UTC)
 
  
 
tar -lvvb archive.tar.bz
 
tar -lvvb archive.tar.bz

Please note that all contributions to explain xkcd may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see explain xkcd:Copyrights for details). Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel | Editing help (opens in new window)