Bug 1214 - include directive doesn't like file globs with two *
Summary: include directive doesn't like file globs with two *
Status: UNCONFIRMED
Alias: None
Product: Ledger
Classification: Unclassified
Component: misc (show other bugs)
Version: 3.1.1
Hardware: PC Linux
: P5 enhancement
Assignee: John Wiegley
URL:
Depends on:
Blocks:
 
Reported: 2017-07-13 13:57 UTC by Martin Michlmayr
Modified: 2017-07-13 13:57 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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