Simon, John,

On Mon, Sep 05, 2011 at 02:28:55PM -0500, John Wiegley wrote:
> Hmm... space between minus and number should be illegal.

Sorry to bring back this issue, but I finally figured out what is going on:
although my initial example is indeed invalid in ledger (and hledger), the same
example using euros instead of dollars is accepted by ledger.

$ cat bug.ldg 
2001/01/01 foo
    Foo       1 €
    Bar     - 1 €
$ ledger -f bug.ldg bal
                -1 €  Bar
                 1 €  Foo
--------------------
                   0
$ hledger -f bug.ldg bal
hledger: parse error at "bug.ldg" (line 2, column 13):
unexpected "-"
expecting comment or new-line

I'm not sure whether ledger should be "fixed" to refuse this input, or hledger
changed to accept it, but there is definitely an incompatibility here.

Best,
-- 
Gabriel

Reply via email to