December 18, 2008 at 8:12PM Testing embedding stuff from Github Gist: pipedarg
I knocked this out earlier because I needed something to allow me to open HTML document attachments in Firefox from mutt. It writes standard input to a temporary file and then executes the remainder of the arguments passed to the script, with the path of the temporary file given as the final argument. Might be useful to somebody.
It was also a good opportunity to test out embedding a Github Gist. If you can’t see it, here, you can see the source for pipedarg here.
Update (27th December): I wasn’t thinking straight when I wrote that, and I’d corrected the script a couple of days after posting it up. You can see what changes I made from the history.