On "todo.sh help", first the long help output is printed through the pager, and after quitting the pager the output is printed once more in full. Didn't write a test for this, as this requires a connected terminal and cannot be observed in the test harness. Fix: The "exec" command has no effect inside a pipe; added an explicit "exit 0". Also simplified check for PAGER: No "exec" necessary, combining stderr and stdout. Also added quoting for PAGER so that it can contain spaces.
31 KiB
Executable File
31 KiB
Executable File