Thank you, Jostein. I don't have a ~/.ledgerrc file but created an empty one. Any suggested settings?
Experimenting a bit more, if I add other other commodities, e.g. this entry: 2017/11/15 zombie investments a: 401k: big co 500 idx 1.745 abcdx @ $81.23 a: 401k: bonds idx 2.357 lmnop @ $20.05 a: 401k: cash $-189 Then I get output for --collapse, but only for that entry. 17-Nov-15 zombie investments <Total> $-189.00 1.745 abcdx 2.357 lmnop $-189.00 1.745 abcdx 2.357 lmnop I get other stuff if specifying `reg '^e'`: 17-Nov-01 food and stuff <Total> $32.87 $32.87 17-Dec-05 food and stuff e: food: groceries $11.76 $44.63 18-Jan-03 gas n go <Total> $23.87 $68.50 18-Jan-05 food and stuff e: food: groceries $57.40 $125.90 Thanks again. For my purposes this isn't really getting in the way but would be good to understand why this happens. (Especially if ledger is reporting incorrectly.) On Monday, February 19, 2018 at 8:01:09 AM UTC-6, Jostein Berntsen wrote: > > On 18.02.18,10:26, Scott Carpenter wrote: > > Trying to use --collapse and it comes up empty on this data set: > > > > 2017/11/01 food and stuff > > e: food: groceries > > e: home: stuff: in $10 > > l: credit card: mega $-32.87 > > > > 2017/12/05 food and stuff > > e: food: groceries > > a: checking out $-11.76 > > > > 2018/01/03 gas n go > > e: car: gas > > e: car: maintenance $6.5 > > l: credit card: mega $-23.87 > > > > 2018/01/05 food and stuff > > e: food: groceries > > l: credit card: mega $-57.4 > > > > > > Running: ledger -f <file> reg --collapse > > > > (Wanting to run it with --yearly, but empty either way when --collapse > is > > added.) > > > > Works as expected with a larger "real" dataset. > > > > Any ideas or wisdom? Thank you! > > > > It seems to work correctly with the bal and --collapse command, but not > with reg and --collapse. > > Another similar thread from previously: > > https://groups.google.com/forum/#!msg/ledger-cli/zwGRSJO376s/XpBUQbbmBAAJ > > Can you check your ledgerrc settings, or copy one to ~ if you have no rc > file? > > > > Jostein > > -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.