Skip to main content

Timeline for Shortest auto-destructive loop

Current License: CC BY-SA 3.0

13 events
when toggle format what by license comment
Jun 17, 2020 at 9:04 history edited CommunityBot
Commonmark migration
Apr 13, 2017 at 12:39 history edited CommunityBot
replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
Feb 3, 2017 at 19:35 history edited Riley CC BY-SA 3.0
added 91 characters in body
Feb 3, 2017 at 19:28 history edited Riley CC BY-SA 3.0
added 91 characters in body
Feb 3, 2017 at 19:24 comment added zeppelin You can save 6 more bytes, by replacing your s/// command with H;G, as explained here
Feb 3, 2017 at 16:46 history edited Riley CC BY-SA 3.0
added 352 characters in body
Feb 3, 2017 at 16:39 comment added Riley @seshoumara I thought it would still give it an empty string. That seems to work then. Thanks!
Feb 3, 2017 at 16:33 comment added seshoumara With echo -n absolutely nothing gets passed to sed, but sed can't start without input by design. Check this meta link to see that echo|sed is the accepted way to start sed for challenges invoking a no input rule.
Feb 3, 2017 at 16:25 comment added Riley @seshoumara echo -n | sed 's:a\?:&a:g' and got no output. It would be the same as sed 's::a:' which wouldn't match anything.
Feb 3, 2017 at 16:22 history edited Riley CC BY-SA 3.0
added 1 character in body
Feb 3, 2017 at 15:54 comment added Riley @seshoumara I don't think that'll match anything when the pattern space is empty, so it'll never make the first replacement.
Feb 3, 2017 at 15:48 comment added seshoumara Hi, how about s:a\?:&a:g? It is 1 byte less and doubles the pattern size per iteration as well.
Dec 24, 2016 at 3:56 history answered Riley CC BY-SA 3.0