Alexis
unread,Jun 11, 2023, 2:46:46 AM6/11/23Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to John Wiegley, Ledger, Martin Michlmayr, Bob Wilson
Thanks John for providing support and thanks for raising this issue Bob.
Looking at the code there are few questions that arise for me:
* Should ledger really be looking for and use less if PAGER is unset?
Isn't the absence of PAGER and indicator that the user prefers their
output straight to the terminal?
* When looking for less shouldn't ledger search all directories in PATH
instead of hard-coded locations?
If yes, does anyone know of a UNIX PATH searching function readily
available, e.g. in the Boost Filesystem Library¹ before a custom
one is added?
* Where and how is LEDGER_PAGER used in the source code?
A quick grep for LEDGER_PAGER did not
Is there some generic code that allows any ledger command-line option
to be used as an upper-cased and LEDGER_-prefix environment variable?
If yes, where is it implemented?
* How could this be tested along with other unit tests, so that
once a desired behaviour is defined its implementation is tested.
Alexis
¹
https://www.boost.org/doc/libs/1_82_0/libs/filesystem/doc/index.htm