Bug 1214

Summary: include directive doesn't like file globs with two *
Product: Ledger Reporter: Martin Michlmayr <tbm>
Component: miscAssignee: John Wiegley <johnw>
Status: UNCONFIRMED ---    
Severity: enhancement    
Priority: P5    
Version: 3.1.1   
Hardware: PC   
OS: Linux   

Description Martin Michlmayr 2017-07-13 13:57:17 UTC
!include doesn't seem to like file globs that contain 2 wildcards, e.g. */*.ledger:

$ mkdir t
$ cd t
$ mkdir -p a/b a/c
$ touch a/b/t.ledger a/c/t.ledger
$ echo '!include a/*/*.ledger' > t.ledger
$ cat t.ledger
!include a/*/*.ledger
$ ledger -f t.ledger bal
While parsing file "/home/tbm/t/t.ledger", line 1:
Error: File to include was not found: "/home/tbm/t/a/*/*.ledger"

$ ls -l /home/tbm/t/a/*/*.ledger
-rw-r--r-- 1 tbm tbm 0 Jul 13 15:52 /home/tbm/t/a/b/t.ledger
-rw-r--r-- 1 tbm tbm 0 Jul 13 15:52 /home/tbm/t/a/c/t.ledger