On Sep 28, 2010, at 11:57 PM, Michael Norrish wrote: > If I run > > ledger -X \$ bal accregexp > > and > > ledger -X \$ reg accregexp > > I get different amounts as the final total. If the last piece of price > information is from yesterday, this doesn't happen, but now that I've > appended some fresh price data to my commodity-price list, I get a > discrepancy. > > Is reg ignoring price information from today?
If you can reproduce this using an anonymized ledger file, I'd love a bug report. bal and reg should *always* agree, for the same set of options. I even have tests to verify this, but their coverage is not so great. Basically, try this: ledger print --anon -o foo.dat ledger -f foo.dat -X \$ bal <regex> ledger -f foo.dat -X \$ reg <regex> If they disagree, then verify that foo.dat is anonymous enough for you to feel comfortable, and send me a bug! Bonus points for reducing it down to a smaller size test case. :) Thanks, John
