In my last post I floated the idea of writing a slow, edit-prone shell script instead as a self-rebuilding C program. Just for fun, here is the briefest way I've found to make a one-file C program self-rebuilding. Note that it only works given an env that implements the -S option. That includes the env in GNU Coreutils 8.30 or above, and (so I'm told) FreeBSD's. So regard it as a total hack not for serious use! Of course for a more portable version you can use #!/bin/sh and the self-extractin...