From c8151dea46cdc2a0af7e26a146402a6ebb98310d Mon Sep 17 00:00:00 2001 From: Marcus Zanona Date: Fri, 8 Apr 2022 07:32:55 +0000 Subject: docs: add instructions for querying quoted commodities resolves #2077 --- doc/ledger3.texi | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'doc/ledger3.texi') diff --git a/doc/ledger3.texi b/doc/ledger3.texi index edfb2518..8a94271b 100644 --- a/doc/ledger3.texi +++ b/doc/ledger3.texi @@ -1773,6 +1773,12 @@ commodity name must be enclosed in double quotes @samp{"}: Actif:SG PEE STK $-10742.54 @end smallexample +Please note that, for querying quoted commodities, the quotes need to be escaped, as follows: + +@smallexample @c command:15453B3 +$ ledger -f d reg -l 'commodity == "\"Arcancia Équilibre 454\""' +@end smallexample + @node Buying and Selling Stock, Fixing Lot Prices, Naming Commodities, Currency and Commodities @subsection Buying and Selling Stock @cindex buying stock -- cgit v1.2.3