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

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/fqhkfu4f5mo4x3zven7u4zjnizlxbkf3pba25hihlimkaclsle%40istn5dx5viwl.

Reply via email to