Sigh. No sooner posted than I had a better idea for finding it in the docs 
and looks like "6.2.1 Controlling the Accounts and Payees" has what I need. 
I had looked for --account but gave up too quickly. 




On Wednesday, January 2, 2019 at 5:08:57 PM UTC-6, Scott Carpenter wrote:
>
> In my ledgerbil program I construct ledger queries for accounts and ran 
> into an issue when the account ended with a % sign. I now realize a % sign 
> in the account name probably isn't a great idea, but I'd like to handle if 
> possible. 
>
> An example! Let's say we have an account:
>
> assets: unwise%
>
> And wrap the account to query for an exact match:
>
> ledger balance '^assets: unwise%$'
>
> It appears that ledger interprets this as:
>
> ledger balance '^assets: unwise' %$
>
> Where %$ will match any tag.
>
> Is there some other way to query for accounts that would avoid this issue? 
> And would want to be able to query for multiple accounts at one time.
>
> And again, easy solution is that I won't use % in an account name, but it 
> was working okay otherwise and I'm trying to head off future bug reports 
> that would be really hard to troubleshoot. :-)
>
> Thanks!
>

-- 

--- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to