hledger icon indicating copy to clipboard operation
hledger copied to clipboard

a strange account alias behaviour

Open simonmichael opened this issue 2 months ago • 0 comments

A bug, or at least a mystery to investigate:

# Sometimes I alias . to : so I can write . for subaccounts.
alias /\./=:

# Here I also make a short alias (ow) for a second-level account (w:ow).
alias ow=w.ow

2025-10-01
  (ow.aaa)  1

I expected ow.aaa to be equivalent to writing w:ow:aaa, but it's not:

$ hledger accounts
ow:aaa

If I change it to ow:aaa, it works:

$ hledger accounts
w:ow:aaa

simonmichael avatar Oct 01 '25 20:10 simonmichael