
10 Sep
2008
10 Sep
'08
10:07 p.m.
On Wed, 2008-09-10 at 16:57 -0500, John Goerzen wrote:
Whoa, that is sneaky and clever. But it will fail the minute you try to run this on a compiled program, because then getProgName will give you the binary executable.
Sooooo, I won't do that. In addition to getProgName getting the binary, the compiler would have thrown away the comments. The point is that this is a convenient way to write simple scripts.