Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • \$\begingroup\$ this is missing a second >. also, assuming you have a "special" $PATH and "special" umask/filesystem, you can go for w>>w;$0, brining it down to 7 chars \$\endgroup\$ Commented Apr 1, 2016 at 19:09
  • \$\begingroup\$ @mnagel >> is append, it will eventually fill the disk \$\endgroup\$ Commented Apr 1, 2016 at 20:14
  • 1
    \$\begingroup\$ @mnagel but you're right about not needing exec,I didn't realize that. Someone else has done it, so I won't update, though \$\endgroup\$ Commented Apr 1, 2016 at 20:42
  • 3
    \$\begingroup\$ Or . $0 instead of exec $0, perhaps? I don't know if that will run cause a stack overflow or something, though. ... Yep, it segfaulted. \$\endgroup\$ Commented Apr 2, 2016 at 8:45