Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Timeline for A program that deletes itself

Current License: CC BY-SA 3.0

7 events
when toggle format what by license comment
Sep 11, 2017 at 11:46 comment added ɐɔıʇǝɥʇuʎs @Pavel Hmm... 0 bytes?
Sep 11, 2017 at 11:44 history edited ɐɔıʇǝɥʇuʎs CC BY-SA 3.0
added 1 character in body
Jun 16, 2017 at 6:06 comment added user62131 This isn't actually a Bash program (if you run it explicitly using bash, it won't delete anything). It's a UNIX/Linux executable. (It also works in Perl, which emulates UNIX/Linux's handling of #! lines so that it can be used to run shellscripts on platforms that can't do it natively.)
Jun 16, 2017 at 6:06 comment added user62131 @Phoenix: It is if it's unusual for the language you're using; only completely standard #! lines that just give the name of the language's default interpreter count as zero. This is a very unusual #! line as far as Bash goes. (Not that this actually works in Bash, although there are other languages where it works.)
May 7, 2017 at 3:10 comment added Pavel The #! line isn't counted in score.
Jul 2, 2014 at 18:07 comment added user344 Or if you want to be cheaty: a 0-byte rm program.
May 29, 2014 at 8:30 history answered ɐɔıʇǝɥʇuʎs CC BY-SA 3.0

AltStyle によって変換されたページ (->オリジナル) /