[darcs-devel] darcs patch: add sendmail-command option (#115)
David Roundy
droundy at abridgegame.org
Thu Mar 31 04:35:51 PST 2005
On Wed, Mar 30, 2005 at 06:31:25PM +0200, Benedikt Schmidt wrote:
> Am Mittwoch, den 30.03.2005, 07:31 -0500 schrieb David Roundy:
> > It would also be nice to have a bit of documentation on your CommandLine
> > API, since it's not immediately obvious (to me) from the type signatures
> > what the commands do.
>
> It's just a parser for commandlines so that we can use exec
> instead of system. It understands quoting with " and format specifiers
> that are replaced with some text. E.g.:
> command "arg with spaces and quotes \"\"" %s another
> -> ["command", "arg with spaces and quotes \"\""
> , "text specified for s","another"]
Cool! I had a vague idea of what it did (from reading the code), but your
comments help a lot. It looks like this may be useful for dealing with
hooks (if anyone ever gets around to that...).
--
David Roundy
http://www.darcs.net
More information about the darcs-devel
mailing list