From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason at zx2c4.com (Jason A. Donenfeld) Date: Sat, 27 Oct 2012 19:33:08 -0600 Subject: [PATCHv2 2/3] Add ability to authorize viewing a repository In-Reply-To: References: <1350378927-10834-1-git-send-email-valentin.haenel@gmx.de> <1350894558-24840-2-git-send-email-valentin.haenel@gmx.de> Message-ID: On Sat, Oct 27, 2012 at 7:29 PM, Ben Boeckel wrote: > Well, that would require that we either shell-split the option (messy > and error prone in and of itself) or effectively require trampoline > scripts for everything due to enforced arguments. Though...something > taking these arguments naturally is unlikely. +1 for fork/exec here. In light of the prior suggestion of leaving the env var choice to the helper script, a trampoline is gonna be necessary no matter what. For resource intensive things, just write it in C. On the topic of 'enforced arguments', it might be cleaner to actually pass everything we need as environment variables (set within the fork before the exec). That way scripts don't have to messily deal with positional arguments.