getquote

Getquote implementation for ledger(1)
Log | Files | Refs | README

commit 067c3ea3e4028fb62e0761c18919264588cb52d5
parent a5210c970883d82bb242eb46de73f22055e36f66
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date:   Thu, 22 Jan 2026 16:41:31 -0600

Fix circular definition detection logic typo

The circular definition detection logic was broken because it used
awk's assignment operator ('=') instead of the comparison operator
('==').  This caused all aliases to raise the circular definition
error.

Diffstat:
Mgetquoteaction | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/getquoteaction b/getquoteaction @@ -19,7 +19,7 @@ function resolve_symbol(s, _start) { if (!_start) _start = s - else if (s = _start) + else if (s == _start) err(s ": Circular definition") if (!(s in k))