monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] monotone automate stdio


From: Timothy Brownawell
Subject: Re: [Monotone-devel] monotone automate stdio
Date: Wed, 18 May 2005 19:10:02 -0500

On 5/18/05, Jerome Fisher <address@hidden> wrote:
> This strikes me as bad for the obvious reason that the delimiters
> appearing in the command output would mess things up. You'd need to
> ensure that user data (such as filenames, cert keys and values, cats and
> diffs) are never inserted in such a way that they could be considered a
> delimiter.
> 
>  From the top of my head, you could either:
> 
> 1) Have a method for escaping delimiters when they literally appear in
> the command output.
> 2.a) Have all command output in a format that is always distinguishable
> from non-command output (such as Joel proposed).
> 2.b) Have user data in a format that is always distinguishable from
> non-command output.
> 3) Before the command output, specify how many bytes or lines the
> command output is going to be.
> 4) Use stdout for command output and stderr for non-command output.

I think I like (3) the best. With the mentioned possibility of binary
output, it'd have to be in bytes. So, <done/not done> comma <number of
bytes> colon <output> .

Tim




reply via email to

[Prev in Thread] Current Thread [Next in Thread]