Re: Choosing the commodity in automatic transactions

2011-08-09 Thread John Wiegley
rjc richard+goo...@richardcooper.net writes: = expr account =~ /^Asset:Checking/ payee =~ /^Buying Shares/ (Temp) 1 but that seems to match *everything*. IS that a bug in ledger or me not understanding the syntax? Is the new syntax documented anywhere? Try this: =

Re: Choosing the commodity in automatic transactions

2011-08-09 Thread rjc
On Aug 9, 9:43 pm, John Wiegley jwieg...@gmail.com wrote: Try this: = /^Asset:Checking/ expr payee =~ /^Buying Shares/     (Temp)              1 $ ledger bal -f test.txt While parsing file test.txt, line 1: While parsing automated transaction: = /^Asset:Checking/ expr payee =~ /^Buying

Re: Choosing the commodity in automatic transactions

2011-08-09 Thread John Wiegley
rjc richard+goo...@richardcooper.net writes: $ ledger bal -f test.txt While parsing file test.txt, line 1: While parsing automated transaction: = /^Asset:Checking/ expr payee =~ /^Buying Shares/ Error: payee operator not followed by argument $ Ok, I'll try to track this down when I get a