* Yashovardhan <yashovardh...@gmail.com
> [2021-12-27 11:06]:
> It seems like using hyphens (-) in commodity names causes ledger to
> have problems with limit and other queries.
> For example, ledger reg -l 'commodity == "ABC-Fund"' should output 3 postings but has no output.
In your query, the " quotation mark is used to quote the string. But
since it's a quoted commodity, you also need to specify the quotes for
the commodity. Therefore, you need two quotation marks, like this:
ledger -f d reg -l 'commodity == "\"ABC-Fund\""'
> Please let me know if there are any set of valid characters for
> commodity names. Currently, using underscore (_) instead of hyphen
> (-) seems to be a quick fix.